summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2015-02-03 03:55:06 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2015-02-03 03:55:06 +0000
commitc7f8bfc5e52ef9b0133874de0fb7d26ed4c41e10 (patch)
treea926a920a387cdf3d61c9eecdbfd5cbf4db41936 /llvm/lib/Transforms
parent2a9e5c57ef559fd8b19438720eed47e9de615962 (diff)
downloadbcm5719-llvm-c7f8bfc5e52ef9b0133874de0fb7d26ed4c41e10.tar.gz
bcm5719-llvm-c7f8bfc5e52ef9b0133874de0fb7d26ed4c41e10.zip
Resurrect initializers for NumLoads and NumStores in LoopVectorizationLegality to suppress undefined behavior.
FIXME: Shall they be managed in LAA? llvm-svn: 227940
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/Vectorize/LoopVectorize.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
index 988c8bef4c9..e6d83713475 100644
--- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
+++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
@@ -555,8 +555,9 @@ public:
DominatorTree *DT, TargetLibraryInfo *TLI,
AliasAnalysis *AA, Function *F,
const TargetTransformInfo *TTI)
- : NumPredStores(0), TheLoop(L), SE(SE), DL(DL), TLI(TLI), TheFunction(F),
- TTI(TTI), Induction(nullptr), WidestIndTy(nullptr),
+ : NumLoads(0), NumStores(0), 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(
MaxVectorWidth, VectorizationFactor, VectorizationInterleave,
OpenPOWER on IntegriCloud