mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-21 23:17:16 +00:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user