[llvm] [FunctionAttrs] Don't bail out on unknown calls (PR #150958)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 28 13:49:26 PDT 2025
================
@@ -2087,11 +2086,13 @@ static void addNoRecurseAttrs(const SCCNodeSet &SCCNodes,
for (auto &BB : *F)
for (auto &I : BB.instructionsWithoutDebug())
if (auto *CB = dyn_cast<CallBase>(&I)) {
+ if (CB->hasFnAttr(Attribute::NoRecurse))
+ continue;
----------------
efriedma-quic wrote:
Oh, didn't realize there was already an active discussion. If the current norecurse inference is self-consistent, that fine for now.
https://github.com/llvm/llvm-project/pull/150958
More information about the llvm-commits
mailing list