diff options
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);  }  | 
