Add LCSSA as a requirement for LoopUnswitch, and assert that LoopUnswitch preserves

LCSSA.

llvm-svn: 28739
This commit is contained in:
Owen Anderson 2006-06-09 18:40:32 +00:00
parent 6c2f7512a6
commit 4a0ceb1e6d

View File

@ -73,6 +73,8 @@ namespace {
AU.addPreservedID(LoopSimplifyID);
AU.addRequired<LoopInfo>();
AU.addPreserved<LoopInfo>();
AU.addRequiredID(LCSSAID);
AU.addPreservedID(LCSSAID);
}
private:
@ -199,6 +201,8 @@ bool LoopUnswitch::visitLoop(Loop *L) {
}
}
assert(L->isLCSSAForm());
return Changed;
}