mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 18:24:00 +00:00
Make Loop able to verify that it is in LCSSA-form, and have the LCSSA pass assert
on this. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28738 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -98,7 +98,7 @@ bool LCSSA::runOnFunction(Function &F) {
|
||||
for (LoopInfo::iterator I = LI->begin(), E = LI->end(); I != E; ++I) {
|
||||
changed |= visitSubloop(*I);
|
||||
}
|
||||
|
||||
|
||||
return changed;
|
||||
}
|
||||
|
||||
@ -132,6 +132,8 @@ bool LCSSA::visitSubloop(Loop* L) {
|
||||
processInstruction(*I, exitBlocks);
|
||||
}
|
||||
|
||||
assert(L->isLCSSAForm());
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user