diff options
author | Hao Liu <Hao.Liu@arm.com> | 2015-01-14 03:02:16 +0000 |
---|---|---|
committer | Hao Liu <Hao.Liu@arm.com> | 2015-01-14 03:02:16 +0000 |
commit | e28d154cd5f1c2fc91cae530a4b2c9eb3e5e76e5 (patch) | |
tree | fa8a2d2ff16f1468c186d12aa3be43d92ef98932 | |
parent | ce12ed20c60bd16c44aad271ca0fd9cf1ec00310 (diff) | |
download | llvm-e28d154cd5f1c2fc91cae530a4b2c9eb3e5e76e5.zip llvm-e28d154cd5f1c2fc91cae530a4b2c9eb3e5e76e5.tar.gz llvm-e28d154cd5f1c2fc91cae530a4b2c9eb3e5e76e5.tar.bz2 |
Fix a wrong comment in LoopVectorize.
I.E. more than two -> exactly two
Fix a typo function name in LoopVectorize.
I.E. collectStrideAcccess() -> collectStrideAccess()
llvm-svn: 225935
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index d485b7a..557304e 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -830,7 +830,7 @@ private: /// /// Looks for accesses like "a[i * StrideA]" where "StrideA" is loop /// invariant. - void collectStridedAcccess(Value *LoadOrStoreInst); + void collectStridedAccess(Value *LoadOrStoreInst); /// Report an analysis message to assist the user in diagnosing loops that are /// not vectorized. @@ -3703,7 +3703,7 @@ bool LoopVectorizationLegality::canVectorizeInstrs() { return false; } - // We only allow if-converted PHIs with more than two incoming values. + // We only allow if-converted PHIs with exactly two incoming values. if (Phi->getNumIncomingValues() != 2) { emitAnalysis(Report(it) << "control flow not understood by vectorizer"); @@ -3829,12 +3829,12 @@ bool LoopVectorizationLegality::canVectorizeInstrs() { return false; } if (EnableMemAccessVersioning) - collectStridedAcccess(ST); + collectStridedAccess(ST); } if (EnableMemAccessVersioning) if (LoadInst *LI = dyn_cast<LoadInst>(it)) - collectStridedAcccess(LI); + collectStridedAccess(LI); // Reduction instructions are allowed to have exit users. // All other instructions must not have external users. @@ -3972,7 +3972,7 @@ static Value *getStrideFromPointer(Value *Ptr, ScalarEvolution *SE, return Stride; } -void LoopVectorizationLegality::collectStridedAcccess(Value *MemAccess) { +void LoopVectorizationLegality::collectStridedAccess(Value *MemAccess) { Value *Ptr = nullptr; if (LoadInst *LI = dyn_cast<LoadInst>(MemAccess)) Ptr = LI->getPointerOperand(); |