mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-21 11:38:35 +00:00
Fix a comment. Induction vars dont need to start at zero.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173061 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
97ff618b06
commit
dc0a5fd226
@ -2562,7 +2562,7 @@ LoopVectorizationLegality::isInductionVariable(PHINode *Phi) {
|
||||
if (!PhiTy->isIntegerTy() && !PhiTy->isPointerTy())
|
||||
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 SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(PhiScev);
|
||||
if (!AR) {
|
||||
|
Loading…
Reference in New Issue
Block a user