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

LCSSA.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Owen Anderson 2006-06-09 18:40:32 +00:00
parent f25c19c6b5
commit fcaf345c88

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