mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-24 20:44:51 +00:00
Add LCSSA as a requirement for LoopUnswitch, and assert that LoopUnswitch preserves
LCSSA. llvm-svn: 28739
This commit is contained in:
parent
6c2f7512a6
commit
4a0ceb1e6d
@ -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
Block a user