projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
97ff618
)
Fix a comment. Induction vars dont need to start at zero.
author
Nadav Rotem
<nrotem@apple.com>
Mon, 21 Jan 2013 17:59:18 +0000
(17:59 +0000)
committer
Nadav 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
patch
|
blob
|
history
diff --git
a/lib/Transforms/Vectorize/LoopVectorize.cpp
b/lib/Transforms/Vectorize/LoopVectorize.cpp
index ba8987d606f0181bfac1739b1fd34ffc0b2f3f44..447f24a99bdb0411bbe3138342d6292d1b39dbf5 100644
(file)
--- a/
lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/
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) {