[llvm] [Attributor] Only seed live internal callees during deduction (PR #222226)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 10 01:20:20 PDT 2026
================
@@ -4683,8 +4683,12 @@ struct AAIsDeadFunction : public AAIsDead {
for (const Instruction &I : BB)
if (const auto *CB = dyn_cast<CallBase>(&I))
if (auto *F = dyn_cast_if_present<Function>(CB->getCalledOperand()))
- if (F->hasLocalLinkage())
+ if (F->hasLocalLinkage()) {
+ LLVM_DEBUG(dbgs() << "[AAIsDead] Seeding live internal callee "
+ << F->getName() << " from "
+ << BB.getParent()->getName() << "\n");
----------------
arsenm wrote:
printAsOperand
https://github.com/llvm/llvm-project/pull/222226
More information about the llvm-commits
mailing list