diff options
author | Adam Nemet <anemet@apple.com> | 2015-02-18 03:42:35 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2015-02-18 03:42:35 +0000 |
commit | 30f16e1696235b985b2c440d7fa0d3b8298be713 (patch) | |
tree | 8fde80ce9cd1dfa743799b158ed00e8b5b54d890 /llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | |
parent | b729f40887db2815a4357123590cf577cb5e60e0 (diff) | |
download | bcm5719-llvm-30f16e1696235b985b2c440d7fa0d3b8298be713.tar.gz bcm5719-llvm-30f16e1696235b985b2c440d7fa0d3b8298be713.zip |
[LoopAccesses] Rename LoopAccessAnalysis to LoopAccessInfo
LoopAccessAnalysis will be used as the name of the pass.
This is part of the patchset that converts LoopAccessAnalysis into an
actual analysis pass.
llvm-svn: 229621
Diffstat (limited to 'llvm/lib/Transforms/Vectorize/LoopVectorize.cpp')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 1db089b8d61..bd39b8048b1 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -551,8 +551,8 @@ public: : NumPredStores(0), TheLoop(L), SE(SE), DL(DL), TLI(TLI), TheFunction(F), TTI(TTI), Induction(nullptr), WidestIndTy(nullptr), - LAA(F, L, SE, DL, TLI, AA, DT, - LoopAccessAnalysis::VectorizerParams( + LAI(F, L, SE, DL, TLI, AA, DT, + LoopAccessInfo::VectorizerParams( MaxVectorWidth, VectorizationFactor, VectorizationInterleave, RuntimeMemoryCheckThreshold)), HasFunNoNaNAttr(false) {} @@ -740,19 +740,19 @@ public: bool isUniformAfterVectorization(Instruction* I) { return Uniforms.count(I); } /// Returns the information that we collected about runtime memory check. - LoopAccessAnalysis::RuntimePointerCheck *getRuntimePointerCheck() { - return LAA.getRuntimePointerCheck(); + LoopAccessInfo::RuntimePointerCheck *getRuntimePointerCheck() { + return LAI.getRuntimePointerCheck(); } - LoopAccessAnalysis *getLAA() { - return &LAA; + LoopAccessInfo *getLAI() { + return &LAI; } /// This function returns the identity element (or neutral element) for /// the operation K. static Constant *getReductionIdentity(ReductionKind K, Type *Tp); - unsigned getMaxSafeDepDistBytes() { return LAA.getMaxSafeDepDistBytes(); } + unsigned getMaxSafeDepDistBytes() { return LAI.getMaxSafeDepDistBytes(); } bool hasStride(Value *V) { return StrideSet.count(V); } bool mustCheckStrides() { return !StrideSet.empty(); } @@ -777,10 +777,10 @@ public: return (MaskedOp.count(I) != 0); } unsigned getNumStores() const { - return LAA.getNumStores(); + return LAI.getNumStores(); } unsigned getNumLoads() const { - return LAA.getNumLoads(); + return LAI.getNumLoads(); } unsigned getNumPredStores() const { return NumPredStores; @@ -874,7 +874,7 @@ private: /// This set holds the variables which are known to be uniform after /// vectorization. SmallPtrSet<Instruction*, 4> Uniforms; - LoopAccessAnalysis LAA; + LoopAccessInfo LAI; /// Can we assume the absence of NaNs. bool HasFunNoNaNAttr; @@ -1658,7 +1658,7 @@ int LoopVectorizationLegality::isConsecutivePtr(Value *Ptr) { } bool LoopVectorizationLegality::isUniform(Value *V) { - return LAA.isUniform(V); + return LAI.isUniform(V); } InnerLoopVectorizer::VectorParts& @@ -2230,7 +2230,7 @@ void InnerLoopVectorizer::createEmptyLoop() { // faster. Instruction *MemRuntimeCheck; std::tie(FirstCheckInst, MemRuntimeCheck) = - Legal->getLAA()->addRuntimeCheck(LastBypassBlock->getTerminator()); + Legal->getLAI()->addRuntimeCheck(LastBypassBlock->getTerminator()); if (MemRuntimeCheck) { // Create a new block containing the memory check. BasicBlock *CheckBlock = @@ -3398,7 +3398,7 @@ bool LoopVectorizationLegality::canVectorize() { collectLoopUniforms(); DEBUG(dbgs() << "LV: We can vectorize this loop" << - (LAA.getRuntimePointerCheck()->Need ? " (with a runtime bound check)" : + (LAI.getRuntimePointerCheck()->Need ? " (with a runtime bound check)" : "") <<"!\n"); @@ -3823,7 +3823,7 @@ void LoopVectorizationLegality::collectLoopUniforms() { } bool LoopVectorizationLegality::canVectorizeMemory() { - return LAA.canVectorizeMemory(Strides); + return LAI.canVectorizeMemory(Strides); } static bool hasMultipleUsesOf(Instruction *I, @@ -4167,7 +4167,7 @@ bool LoopVectorizationLegality::isInductionVariable(const Value *V) { } bool LoopVectorizationLegality::blockNeedsPredication(BasicBlock *BB) { - return LAA.blockNeedsPredication(BB); + return LAI.blockNeedsPredication(BB); } bool LoopVectorizationLegality::blockCanBePredicated(BasicBlock *BB, |