Skip to content

Commit 08d018f

Browse files
committed
Comment
1 parent 7d22a7e commit 08d018f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/IPO/FunctionAttrs.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1766,6 +1766,8 @@ static bool
17661766
allBBPathsGoThroughCold(BasicBlock *BB,
17671767
SmallDenseMap<BasicBlock *, bool, 16> &Visited) {
17681768
// 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.
17691771
if (any_of(*BB, [](Instruction &I) {
17701772
if (auto *CB = dyn_cast<CallBase>(&I))
17711773
return CB->hasFnAttr(Attribute::Cold);

0 commit comments

Comments
 (0)