diff options
author | Adam Nemet <anemet@apple.com> | 2015-02-03 17:59:53 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2015-02-03 17:59:53 +0000 |
commit | b60295a525436a16601b5f6c07fe3bd5469de695 (patch) | |
tree | 80f9e613ee6e6618811c8c634e9bb5e122f577a4 /llvm/lib/Transforms | |
parent | 5bbcdaa8d94963014a810c7b91475f43d4465f07 (diff) | |
download | bcm5719-llvm-b60295a525436a16601b5f6c07fe3bd5469de695.tar.gz bcm5719-llvm-b60295a525436a16601b5f6c07fe3bd5469de695.zip |
[LoopVectorize] Fix rebase glitch in r227751
LoopVectorizationLegality::{getNumLoads,getNumStores} should forward to
LoopAccessAnalysis now.
Thanks to Takumi for noticing this!
llvm-svn: 227992
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index e6d83713475..8d0c817e882 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -555,7 +555,7 @@ public: DominatorTree *DT, TargetLibraryInfo *TLI, AliasAnalysis *AA, Function *F, const TargetTransformInfo *TTI) - : NumLoads(0), NumStores(0), NumPredStores(0), TheLoop(L), SE(SE), DL(DL), + : 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, @@ -780,10 +780,10 @@ public: return (MaskedOp.count(I) != 0); } unsigned getNumStores() const { - return NumStores; + return LAA.getNumStores(); } unsigned getNumLoads() const { - return NumLoads; + return LAA.getNumLoads(); } unsigned getNumPredStores() const { return NumPredStores; @@ -842,8 +842,6 @@ private: VectorizationReport::emitAnalysis(Message, TheFunction, TheLoop); } - unsigned NumLoads; - unsigned NumStores; unsigned NumPredStores; /// The loop that we evaluate. |