[PATCH] D44983: [LoopUnroll] Only peel if a predicate becomes known in the loop body.

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 02:28:18 PDT 2018


mkazantsev added inline comments.
Herald added a subscriber: zzheng.


================
Comment at: lib/Transforms/Utils/LoopUnrollPeel.cpp:227
+                            RightSCEV) &&
+        SE.isMonotonicPredicate(LeftAR, Pred, Increasing))
+      DesiredPeelCount = NewPeelCount;
----------------
How about checking it before you start calculating `NewPeelCount`?


https://reviews.llvm.org/D44983





More information about the llvm-commits mailing list