mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Add a DominatorTree argument to isLCSSA so that it doesn't have to
compute a set of reachable blocks for itself each time it is called, which is fairly frequently. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@98179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -88,7 +88,7 @@ namespace {
|
||||
/// verifyAnalysis() - Verify loop nest.
|
||||
virtual void verifyAnalysis() const {
|
||||
// Check the special guarantees that LCSSA makes.
|
||||
assert(L->isLCSSAForm() && "LCSSA form not preserved!");
|
||||
assert(L->isLCSSAForm(*DT) && "LCSSA form not preserved!");
|
||||
}
|
||||
|
||||
/// inLoop - returns true if the given block is within the current loop
|
||||
@ -164,7 +164,7 @@ bool LCSSA::runOnLoop(Loop *TheLoop, LPPassManager &LPM) {
|
||||
}
|
||||
}
|
||||
|
||||
assert(L->isLCSSAForm());
|
||||
assert(L->isLCSSAForm(*DT));
|
||||
PredCache.clear();
|
||||
|
||||
return MadeChange;
|
||||
|
Reference in New Issue
Block a user