[PATCH] D44667: [LoopPredication] Add profitability check based on BPI

Serguei Katkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 21 20:54:42 PDT 2018


skatkov added inline comments.


================
Comment at: lib/Transforms/Scalar/LoopPredication.cpp:747
+  // predicate.
+  for (const auto &ExitEdge : ExitEdges) {
+    BranchProbability ExitingBlockProbability =
----------------
Just a side comment... Instead of "for loop" you can consider "any_of" usage in this case. However I do not know whether it looks better :) So it is up to you.


Repository:
  rL LLVM

https://reviews.llvm.org/D44667





More information about the llvm-commits mailing list