diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-25 14:24:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-02-25 14:24:11 +0000 |
commit | 43b5a51e7cfeb282656114ebf215cdd8f2063eef (patch) | |
tree | ca4e66c6363e5051a2284986ab6834d6df34e84d /llvm/lib/Transforms/Vectorize | |
parent | 96e51b890b05dd8939213ca78cc9e8aa34ca8cd3 (diff) | |
download | bcm5719-llvm-43b5a51e7cfeb282656114ebf215cdd8f2063eef.tar.gz bcm5719-llvm-43b5a51e7cfeb282656114ebf215cdd8f2063eef.zip |
Make a few more DataLayout variables const.
llvm-svn: 202155
Diffstat (limited to 'llvm/lib/Transforms/Vectorize')
-rw-r--r-- | llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp index 8e3ec815e82..68d64e71ecd 100644 --- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp +++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp @@ -344,7 +344,7 @@ public: typedef SmallPtrSet<Value *, 16> ValueSet; typedef SmallVector<StoreInst *, 8> StoreList; - BoUpSLP(Function *Func, ScalarEvolution *Se, DataLayout *Dl, + BoUpSLP(Function *Func, ScalarEvolution *Se, const DataLayout *Dl, TargetTransformInfo *Tti, AliasAnalysis *Aa, LoopInfo *Li, DominatorTree *Dt) : F(Func), SE(Se), DL(Dl), TTI(Tti), AA(Aa), LI(Li), DT(Dt), @@ -533,7 +533,7 @@ private: // Analysis and block reference. Function *F; ScalarEvolution *SE; - DataLayout *DL; + const DataLayout *DL; TargetTransformInfo *TTI; AliasAnalysis *AA; LoopInfo *LI; @@ -1784,7 +1784,7 @@ struct SLPVectorizer : public FunctionPass { } ScalarEvolution *SE; - DataLayout *DL; + const DataLayout *DL; TargetTransformInfo *TTI; AliasAnalysis *AA; LoopInfo *LI; @@ -2234,7 +2234,7 @@ public: /// \brief Try to find a reduction tree. bool matchAssociativeReduction(PHINode *Phi, BinaryOperator *B, - DataLayout *DL) { + const DataLayout *DL) { assert((!Phi || std::find(Phi->op_begin(), Phi->op_end(), B) != Phi->op_end()) && "Thi phi needs to use the binary operator"); |