We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d22a7e commit 08d018fCopy full SHA for 08d018f
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -1766,6 +1766,8 @@ static bool
1766
allBBPathsGoThroughCold(BasicBlock *BB,
1767
SmallDenseMap<BasicBlock *, bool, 16> &Visited) {
1768
// If BB contains a cold callsite this path through the CG is cold.
1769
+ // Ignore whether the instructions actually are guranteed to transfer
1770
+ // execution. Divergent behavior is considered unlikely.
1771
if (any_of(*BB, [](Instruction &I) {
1772
if (auto *CB = dyn_cast<CallBase>(&I))
1773
return CB->hasFnAttr(Attribute::Cold);
0 commit comments