[PATCH] D146276: [GuardWidening] Improve analysis of potential widening into hotter block

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 19 20:29:49 PDT 2023


skatkov added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/GuardWidening.cpp:479
+    // If one of successors ends with deopt, another one is likely.
+    if (IfTrue->getPostdominatingDeoptimizeCall())
+      return IfFalse;
----------------
Crazy compile time heuristic. I guess that IfFalse terminates with deopt is more likely. So just re-order them.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146276/new/

https://reviews.llvm.org/D146276



More information about the llvm-commits mailing list