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 | afd6db99322ca8a6556b1e93699b4b4c9ebf5080 (patch) | |
| tree | 0fa53a12b2a9c96bd60e4ff42ae36e22cf80b36d /llvm/lib/Analysis/LoopDependenceAnalysis.cpp | |
| parent | 5ba1459c4c65c56358a8fdd26c731398c4326e64 (diff) | |
| download | llvm-afd6db99322ca8a6556b1e93699b4b4c9ebf5080.zip llvm-afd6db99322ca8a6556b1e93699b4b4c9ebf5080.tar.gz llvm-afd6db99322ca8a6556b1e93699b4b4c9ebf5080.tar.bz2 | |
Move SCEV::isLoopInvariant and hasComputableLoopEvolution to be member
functions of ScalarEvolution, in preparation for memoization and
other optimizations.
llvm-svn: 119562
Diffstat (limited to 'llvm/lib/Analysis/LoopDependenceAnalysis.cpp')
| -rw-r--r-- | llvm/lib/Analysis/LoopDependenceAnalysis.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp b/llvm/lib/Analysis/LoopDependenceAnalysis.cpp index 068b434..a3171ba 100644 --- a/llvm/lib/Analysis/LoopDependenceAnalysis.cpp +++ b/llvm/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); } |
