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:
Owen Anderson
2006-06-09 18:33:30 +00:00
parent e5e228df19
commit f25c19c6b5
3 changed files with 23 additions and 2 deletions

View File

@ -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;
}