Fix a comment. Induction vars dont need to start at zero.
authorNadav Rotem <nrotem@apple.com>
Mon, 21 Jan 2013 17:59:18 +0000 (17:59 +0000)
committerNadav Rotem <nrotem@apple.com>
Mon, 21 Jan 2013 17:59:18 +0000 (17:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173061 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Vectorize/LoopVectorize.cpp

index ba8987d606f0181bfac1739b1fd34ffc0b2f3f44..447f24a99bdb0411bbe3138342d6292d1b39dbf5 100644 (file)
@@ -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) {