Fix PR2028

llvm-svn: 47150
This commit is contained in:
Devang Patel 2008-02-15 01:24:49 +00:00
parent 401a4d72d5
commit a42c3147cc
2 changed files with 7 additions and 2 deletions

View File

@ -56,12 +56,12 @@ namespace {
// LCSSA form makes instruction renaming easier.
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequiredID(LoopSimplifyID);
AU.addPreservedID(LoopSimplifyID);
AU.addRequiredID(LCSSAID);
AU.addPreservedID(LCSSAID);
AU.addPreserved<ScalarEvolution>();
AU.addPreserved<LoopInfo>();
AU.addRequiredID(LoopSimplifyID);
AU.addPreservedID(LoopSimplifyID);
AU.addPreserved<DominatorTree>();
AU.addPreserved<DominanceFrontier>();
}

View File

@ -0,0 +1,5 @@
; RUN: llvm-as < %s | opt -loop-unroll -loop-rotate -simplifycfg -disable-output
; PR 2028
define i32 @test1() {
ret i32 0;
}