diff options
author | David Blaikie <dblaikie@gmail.com> | 2015-03-03 19:20:18 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2015-03-03 19:20:18 +0000 |
commit | 5b240485b73db875dca0fd24e13c6485bbad3444 (patch) | |
tree | 754472fa1dd392ddf19e40b237c43de64a19d676 /llvm/lib/Analysis/DependenceAnalysis.cpp | |
parent | c5771c214e640dd9ec27095869cb9bfa90261c0a (diff) | |
download | bcm5719-llvm-5b240485b73db875dca0fd24e13c6485bbad3444.tar.gz bcm5719-llvm-5b240485b73db875dca0fd24e13c6485bbad3444.zip |
unique_ptrify FullDependenceAnalysis::DV
Making this type a little harder to abuse (see workaround relating to
use of the implicit copy ctor in the prior commit)
llvm-svn: 231104
Diffstat (limited to 'llvm/lib/Analysis/DependenceAnalysis.cpp')
-rw-r--r-- | llvm/lib/Analysis/DependenceAnalysis.cpp | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/lib/Analysis/DependenceAnalysis.cpp b/llvm/lib/Analysis/DependenceAnalysis.cpp index 393ee5c516a..d5d2fb2088c 100644 --- a/llvm/lib/Analysis/DependenceAnalysis.cpp +++ b/llvm/lib/Analysis/DependenceAnalysis.cpp @@ -226,16 +226,12 @@ bool Dependence::isScalar(unsigned level) const { //===----------------------------------------------------------------------===// // FullDependence methods -FullDependence::FullDependence(Instruction *Source, - Instruction *Destination, +FullDependence::FullDependence(Instruction *Source, Instruction *Destination, bool PossiblyLoopIndependent, - unsigned CommonLevels) : - Dependence(Source, Destination), - Levels(CommonLevels), - LoopIndependent(PossiblyLoopIndependent) { - Consistent = true; - DV = CommonLevels ? new DVEntry[CommonLevels] : nullptr; -} + unsigned CommonLevels) + : Dependence(Source, Destination), Levels(CommonLevels), + LoopIndependent(PossiblyLoopIndependent), Consistent(true), + DV(CommonLevels ? new DVEntry[CommonLevels] : nullptr) {} // The rest are simple getters that hide the implementation. |