diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-17 21:23:15 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-17 21:23:15 +0000 |
commit | 17ead4ff4baceb2c5503f233d0288d363ae44165 (patch) | |
tree | 75107c97b0a8ee271277e1150d41df56c2ffb417 /lib/Analysis/LoopDependenceAnalysis.cpp | |
parent | f8dabac6041b2a38307a5ab0beb330ededb7514b (diff) |
Move SCEV::isLoopInvariant and hasComputableLoopEvolution to be member
functions of ScalarEvolution, in preparation for memoization and
other optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119562 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/LoopDependenceAnalysis.cpp')
-rw-r--r-- | lib/Analysis/LoopDependenceAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Analysis/LoopDependenceAnalysis.cpp b/lib/Analysis/LoopDependenceAnalysis.cpp index 068b434a07..a3171ba957 100644 --- a/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/lib/Analysis/LoopDependenceAnalysis.cpp @@ -132,7 +132,7 @@ void LoopDependenceAnalysis::getLoops(const SCEV *S, DenseSet<const Loop*>* Loops) const { // Refactor this into an SCEVVisitor, if efficiency becomes a concern. for (const Loop *L = this->L; L != 0; L = L->getParentLoop()) - if (!S->isLoopInvariant(L)) + if (!SE->isLoopInvariant(S, L)) Loops->insert(L); } |