forked from OSchip/llvm-project
parent
401a4d72d5
commit
a42c3147cc
|
@ -56,12 +56,12 @@ namespace {
|
||||||
|
|
||||||
// LCSSA form makes instruction renaming easier.
|
// LCSSA form makes instruction renaming easier.
|
||||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||||
|
AU.addRequiredID(LoopSimplifyID);
|
||||||
|
AU.addPreservedID(LoopSimplifyID);
|
||||||
AU.addRequiredID(LCSSAID);
|
AU.addRequiredID(LCSSAID);
|
||||||
AU.addPreservedID(LCSSAID);
|
AU.addPreservedID(LCSSAID);
|
||||||
AU.addPreserved<ScalarEvolution>();
|
AU.addPreserved<ScalarEvolution>();
|
||||||
AU.addPreserved<LoopInfo>();
|
AU.addPreserved<LoopInfo>();
|
||||||
AU.addRequiredID(LoopSimplifyID);
|
|
||||||
AU.addPreservedID(LoopSimplifyID);
|
|
||||||
AU.addPreserved<DominatorTree>();
|
AU.addPreserved<DominatorTree>();
|
||||||
AU.addPreserved<DominanceFrontier>();
|
AU.addPreserved<DominanceFrontier>();
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
; RUN: llvm-as < %s | opt -loop-unroll -loop-rotate -simplifycfg -disable-output
|
||||||
|
; PR 2028
|
||||||
|
define i32 @test1() {
|
||||||
|
ret i32 0;
|
||||||
|
}
|
Loading…
Reference in New Issue