[PATCH] D49974: [GuardWidening] Widen guards with conditions of frequently taken dominated branches

Fedor Sergeev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 01:32:20 PDT 2018


fedor.sergeev added inline comments.


================
Comment at: lib/Transforms/Scalar/GuardWidening.cpp:284
+            BPI->getEdgeProbability(BB, 0U) >= *LikelyTaken)
+          Changed |= eliminateGuardViaWidening(BI, DFI, GuardsInBlock);
   }
----------------
What about adding some STATISTICS here?
Would be useful for experiments with this new mode...


https://reviews.llvm.org/D49974





More information about the llvm-commits mailing list