diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-01-21 17:59:18 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-01-21 17:59:18 +0000 |
commit | b2e7e7a0b652062b51ac1fadee1b966431feee56 (patch) | |
tree | 84cd90df308bddc62c547c4d746f31269acdb5c9 /llvm/lib/Transforms | |
parent | 8d3e7974442c748e67bce3011eb68fab873218c6 (diff) | |
download | bcm5719-llvm-b2e7e7a0b652062b51ac1fadee1b966431feee56.tar.gz bcm5719-llvm-b2e7e7a0b652062b51ac1fadee1b966431feee56.zip |
Fix a comment. Induction vars dont need to start at zero.
llvm-svn: 173061
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index ba8987d606f..447f24a99bd 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -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) { |