[llvm-commits] [llvm] r47150 - in /llvm/trunk: lib/Transforms/Scalar/LoopRotation.cpp test/Other/2008-02-14-PassManager.ll
Devang Patel
dpatel at apple.com
Thu Feb 14 17:24:49 PST 2008
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;
+}
More information about the llvm-commits
mailing list