[PATCH] D43876: [LoopUnroll] Peel off iterations if it makes conditions true/false.

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 13 22:31:43 PDT 2018


mkazantsev requested changes to this revision.
mkazantsev added a comment.
This revision now requires changes to proceed.

I think it is a bug to be fixed.



================
Comment at: lib/Transforms/Utils/LoopUnrollPeel.cpp:185
+
+    const SCEVAddRecExpr *LeftAR = cast<SCEVAddRecExpr>(LeftSCEV);
+
----------------
Bail if LeftAR->getLoop() != L.


https://reviews.llvm.org/D43876





More information about the llvm-commits mailing list