[llvm-branch-commits] [llvm] [CodeGen] Limit number of analyzed predecessors (PR #142584)

Alexis Engelke via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jun 4 02:21:45 PDT 2025


================
@@ -1592,6 +1603,11 @@ bool MachineBlockPlacement::hasBetterLayoutPredecessor(
   BlockFrequency CandidateEdgeFreq = MBFI->getBlockFreq(BB) * RealSuccProb;
   bool BadCFGConflict = false;
 
+  // Compile-time optimization: runtime is quadratic in the number of
----------------
aengelke wrote:

Done

https://github.com/llvm/llvm-project/pull/142584


More information about the llvm-branch-commits mailing list