[PATCH] D35302: [IRCE] Recognize loops with unsigned latch conditions

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 3 07:15:41 PDT 2017


anna accepted this revision.
anna added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:1213
   // EnterLoopCond - is it okay to start executing this `LS'?
-  Value *EnterLoopCond = Increasing
-                             ? B.CreateICmpSLT(LS.IndVarStart, ExitSubloopAt)
-                             : B.CreateICmpSGT(LS.IndVarStart, ExitSubloopAt);
+  Value *EnterLoopCond;
+  if (Increasing)
----------------
Set to nullptr here as well.


https://reviews.llvm.org/D35302





More information about the llvm-commits mailing list