forked from OSchip/llvm-project
Fix a comment. Induction vars dont need to start at zero.
llvm-svn: 173061
This commit is contained in:
parent
8d3e797444
commit
b2e7e7a0b6
|
@ -2562,7 +2562,7 @@ LoopVectorizationLegality::isInductionVariable(PHINode *Phi) {
|
||||||
if (!PhiTy->isIntegerTy() && !PhiTy->isPointerTy())
|
if (!PhiTy->isIntegerTy() && !PhiTy->isPointerTy())
|
||||||
return IK_NoInduction;
|
return IK_NoInduction;
|
||||||
|
|
||||||
// Check that the PHI is consecutive and starts at zero.
|
// Check that the PHI is consecutive.
|
||||||
const SCEV *PhiScev = SE->getSCEV(Phi);
|
const SCEV *PhiScev = SE->getSCEV(Phi);
|
||||||
const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(PhiScev);
|
const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(PhiScev);
|
||||||
if (!AR) {
|
if (!AR) {
|
||||||
|
|
Loading…
Reference in New Issue