Skip to content

Commit 41c6eaa

Browse files
committed
Skip checks on callee which already have norecurse attribute
1 parent d148825 commit 41c6eaa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/IPO/FunctionAttrs.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,9 @@ static void addNoRecurseAttrs(const SCCNodeSet &SCCNodes,
21322132
if (!Callee || Callee == F)
21332133
return;
21342134

2135+
if (Callee->doesNotRecurse())
2136+
continue;
2137+
21352138
// External call with NoCallback attribute.
21362139
if (Callee->isDeclaration()) {
21372140
if (Callee->hasFnAttribute(Attribute::NoCallback))

0 commit comments

Comments
 (0)