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 85efc82 commit 3df7969Copy full SHA for 3df7969
llvm/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -1780,6 +1780,11 @@ allBBPathsGoThroughCold(BasicBlock *BB,
1780
if (Succs.empty())
1781
return false;
1782
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.
1788
for (auto *Succ : Succs) {
1789
// Start with false, this is necessary to ensure we don't turn loops into
1790
// cold.
0 commit comments