[PATCH] D20932: [LV] Use vector vphis for more induction variables
Elena Demikhovsky via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 7 05:11:14 PDT 2016
delena added inline comments.
================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:4102
@@ -4100,2 +4101,3 @@
assert(P->getType() == II.getStartValue()->getType() && "Types must match");
- if (P != OldInduction || VF == 1) {
+ if (VF == 1 || P->getType() != Induction->getType() ||
+ !II.getConstIntStepValue()) {
----------------
If you need only SEXT or TRUNC for a secondary induction variable, you can send the type to widenInductionVariable() in the last parameter.
http://reviews.llvm.org/D20932
More information about the llvm-commits
mailing list