Skip to content

Commit 3df7969

Browse files
committed
fixup fmt
1 parent 85efc82 commit 3df7969

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

llvm/lib/Transforms/IPO/FunctionAttrs.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1780,6 +1780,11 @@ allBBPathsGoThroughCold(BasicBlock *BB,
17801780
if (Succs.empty())
17811781
return false;
17821782

1783+
// We didn't find a cold callsite in this BB, so check that all successors
1784+
// contain a cold callsite (or that their successors do).
1785+
// Potential TODO: We could use static branch hints to assume certain
1786+
// successor paths are inherently cold, irrespective of if they contain a cold
1787+
// callsite.
17831788
for (auto *Succ : Succs) {
17841789
// Start with false, this is necessary to ensure we don't turn loops into
17851790
// cold.

0 commit comments

Comments
 (0)