[llvm] [NFC] Remove unused InlineFunctionInfo::InlinedCalls (PR #186920)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 16 16:52:26 PDT 2026
https://github.com/aeubanks created https://github.com/llvm/llvm-project/pull/186920
Looks to be a relic of the legacy pass manager.
>From 9f7d44d82ae9f8e6ee95460898885a844f7d97f2 Mon Sep 17 00:00:00 2001
From: Arthur Eubanks <aeubanks at google.com>
Date: Mon, 16 Mar 2026 23:50:43 +0000
Subject: [PATCH] [NFC] Remove unused InlineFunctionInfo::InlinedCalls
Looks to be a relic of the legacy pass manager.
---
llvm/include/llvm/Transforms/Utils/Cloning.h | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/llvm/include/llvm/Transforms/Utils/Cloning.h b/llvm/include/llvm/Transforms/Utils/Cloning.h
index cfa06a5be79fd..4f594bb456356 100644
--- a/llvm/include/llvm/Transforms/Utils/Cloning.h
+++ b/llvm/include/llvm/Transforms/Utils/Cloning.h
@@ -268,15 +268,9 @@ class InlineFunctionInfo {
/// the caller.
SmallVector<AllocaInst *, 4> StaticAllocas;
- /// InlineFunction fills this in with callsites that were inlined from the
- /// callee. This is only filled in if CG is non-null.
- SmallVector<WeakTrackingVH, 8> InlinedCalls;
-
/// All of the new call sites inlined into the caller.
///
- /// 'InlineFunction' fills this in by scanning the inlined instructions, and
- /// only if CG is null. If CG is non-null, instead the value handle
- /// `InlinedCalls` above is used.
+ /// 'InlineFunction' fills this in by scanning the inlined instructions.
SmallVector<CallBase *, 8> InlinedCallSites;
Value *ConvergenceControlToken = nullptr;
@@ -288,7 +282,6 @@ class InlineFunctionInfo {
void reset() {
StaticAllocas.clear();
- InlinedCalls.clear();
InlinedCallSites.clear();
ConvergenceControlToken = nullptr;
CallSiteEHPad = nullptr;
More information about the llvm-commits
mailing list