[PATCH] D19258: Loop vectorization with induction variable with non-constant step.

Hal Finkel via llvm-commits llvm-commits at lists.llvm.org
Mon May 9 15:48:00 PDT 2016


hfinkel accepted this revision.
This revision is now accepted and ready to land.

================
Comment at: ../lib/Transforms/Utils/LoopUtils.cpp:702
@@ -681,1 +701,3 @@
+        getConstIntStepValue()->isMinusOne())
       return B.CreateSub(StartValue, Index);
+    if (getConstIntStepValue() &&
----------------
Okay. That's unfortunate. Please add a FIXME comment here explaining the situation. Otherwise, this LGTM.


Repository:
  rL LLVM

http://reviews.llvm.org/D19258





More information about the llvm-commits mailing list