Author: dpatel Date: Thu Feb 14 19:24:49 2008 New Revision: 47150 URL: http://llvm.org/viewvc/llvm-project?rev=47150&view=rev Log: Fix PR2028
Added: llvm/trunk/test/Other/2008-02-14-PassManager.ll Modified: llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp Modified: llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp?rev=47150&r1=47149&r2=47150&view=diff ============================================================================== --- llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp (original) +++ llvm/trunk/lib/Transforms/Scalar/LoopRotation.cpp Thu Feb 14 19:24:49 2008 @@ -56,12 +56,12 @@ // 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>(); } Added: llvm/trunk/test/Other/2008-02-14-PassManager.ll URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Other/2008-02-14-PassManager.ll?rev=47150&view=auto ============================================================================== --- llvm/trunk/test/Other/2008-02-14-PassManager.ll (added) +++ llvm/trunk/test/Other/2008-02-14-PassManager.ll Thu Feb 14 19:24:49 2008 @@ -0,0 +1,5 @@ +; RUN: llvm-as < %s | opt -loop-unroll -loop-rotate -simplifycfg -disable-output +; PR 2028 +define i32 @test1() { + ret i32 0; +} _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits