[PATCH] D45617: [IRCE] Only check for NSW on equality predicates

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 16 01:47:15 PDT 2018


mkazantsev added inline comments.


================
Comment at: lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp:933
 
+  ConstantInt *StepCI = cast<SCEVConstant>(StepRec)->getValue();
+  assert(!StepCI->isZero() && "Zero step?");
----------------
How about non-constant steps?


https://reviews.llvm.org/D45617





More information about the llvm-commits mailing list