diff options
author | Adam Nemet <anemet@apple.com> | 2015-11-03 21:39:52 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2015-11-03 21:39:52 +0000 |
commit | a2df750fb3a4441a9ec82e6592d98c5ae8847af5 (patch) | |
tree | 7d40bad615439147f670b7916e08eace7a65f3b4 /llvm/lib/Transforms/Scalar/LoopDistribute.cpp | |
parent | df993479c9e2df6a1b25d17ce3bb24f618c012f2 (diff) | |
download | llvm-a2df750fb3a4441a9ec82e6592d98c5ae8847af5.zip llvm-a2df750fb3a4441a9ec82e6592d98c5ae8847af5.tar.gz llvm-a2df750fb3a4441a9ec82e6592d98c5ae8847af5.tar.bz2 |
[LAA] LLE 3/6: Rename InterestingDependence to Dependences, NFC
Summary:
We now collect all types of dependences including lexically forward
deps not just "interesting" ones.
Reviewers: hfinkel
Subscribers: rengolin, llvm-commits
Differential Revision: http://reviews.llvm.org/D13256
llvm-svn: 251985
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopDistribute.cpp')
-rw-r--r-- | llvm/lib/Transforms/Scalar/LoopDistribute.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp index a776964..1584f0f 100644 --- a/llvm/lib/Transforms/Scalar/LoopDistribute.cpp +++ b/llvm/lib/Transforms/Scalar/LoopDistribute.cpp @@ -546,11 +546,11 @@ public: MemoryInstructionDependences( const SmallVectorImpl<Instruction *> &Instructions, - const SmallVectorImpl<Dependence> &InterestingDependences) { + const SmallVectorImpl<Dependence> &Dependences) { Accesses.append(Instructions.begin(), Instructions.end()); DEBUG(dbgs() << "Backward dependences:\n"); - for (auto &Dep : InterestingDependences) + for (auto &Dep : Dependences) if (Dep.isPossiblyBackward()) { // Note that the designations source and destination follow the program // order, i.e. source is always first. (The direction is given by the @@ -674,9 +674,8 @@ private: DEBUG(dbgs() << "Skipping; memory operations are safe for vectorization"); return false; } - auto *InterestingDependences = - LAI.getDepChecker().getInterestingDependences(); - if (!InterestingDependences || InterestingDependences->empty()) { + auto *Dependences = LAI.getDepChecker().getDependences(); + if (!Dependences || Dependences->empty()) { DEBUG(dbgs() << "Skipping; No unsafe dependences to isolate"); return false; } @@ -704,7 +703,7 @@ private: // NumUnsafeDependencesActive reaches 0. const MemoryDepChecker &DepChecker = LAI.getDepChecker(); MemoryInstructionDependences MID(DepChecker.getMemoryInstructions(), - *InterestingDependences); + *Dependences); int NumUnsafeDependencesActive = 0; for (auto &InstDep : MID) { |