forked from OSchip/llvm-project
Add LCSSA as a requirement for LoopUnswitch, and assert that LoopUnswitch preserves
LCSSA. llvm-svn: 28739
This commit is contained in:
parent
505adff3f0
commit
b1dc1d44f8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue