llvm.org GIT mirror llvm / e928b40
Fix a wrong comment in LoopVectorize. I.E. more than two -> exactly two Fix a typo function name in LoopVectorize. I.E. collectStrideAcccess() -> collectStrideAccess() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225935 91177308-0d34-0410-b5e6-96231b3b80d8 Hao Liu 5 years ago
1 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
829829 ///
830830 /// Looks for accesses like "a[i * StrideA]" where "StrideA" is loop
831831 /// invariant.
832 void collectStridedAcccess(Value *LoadOrStoreInst);
832 void collectStridedAccess(Value *LoadOrStoreInst);
833833
834834 /// Report an analysis message to assist the user in diagnosing loops that are
835835 /// not vectorized.
37023702 return false;
37033703 }
37043704
3705 // We only allow if-converted PHIs with more than two incoming values.
3705 // We only allow if-converted PHIs with exactly two incoming values.
37063706 if (Phi->getNumIncomingValues() != 2) {
37073707 emitAnalysis(Report(it)
37083708 << "control flow not understood by vectorizer");
38283828 return false;
38293829 }
38303830 if (EnableMemAccessVersioning)
3831 collectStridedAcccess(ST);
3831 collectStridedAccess(ST);
38323832 }
38333833
38343834 if (EnableMemAccessVersioning)
38353835 if (LoadInst *LI = dyn_cast(it))
3836 collectStridedAcccess(LI);
3836 collectStridedAccess(LI);
38373837
38383838 // Reduction instructions are allowed to have exit users.
38393839 // All other instructions must not have external users.
39713971 return Stride;
39723972 }
39733973
3974 void LoopVectorizationLegality::collectStridedAcccess(Value *MemAccess) {
3974 void LoopVectorizationLegality::collectStridedAccess(Value *MemAccess) {
39753975 Value *Ptr = nullptr;
39763976 if (LoadInst *LI = dyn_cast(MemAccess))
39773977 Ptr = LI->getPointerOperand();