[llvm-commits] [llvm] r70334 - /llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll

Dan Gohman gohman at apple.com
Tue Apr 28 15:05:13 PDT 2009


Author: djg
Date: Tue Apr 28 17:05:13 2009
New Revision: 70334

URL: http://llvm.org/viewvc/llvm-project?rev=70334&view=rev
Log:
As with r70333, give the primary induction variable a use so
that it can't be trivially eliminated.

Modified:
    llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll

Modified: llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll?rev=70334&r1=70333&r2=70334&view=diff

==============================================================================
--- llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll (original)
+++ llvm/trunk/test/Transforms/LoopSimplify/single-backedge.ll Tue Apr 28 17:05:13 2009
@@ -8,7 +8,8 @@
 ; <label>:0
 	br label %Loop
 Loop:		; preds = %BE2, %BE1, %0
-	%IV = phi i32 [ 1, %0 ], [ %IV2, %BE1 ], [ %IV2, %BE2 ]		; <i32> [#uses=1]
+	%IV = phi i32 [ 1, %0 ], [ %IV2, %BE1 ], [ %IV2, %BE2 ]		; <i32> [#uses=2]
+	store i32 %IV, i32* null
 	%IV2 = add i32 %IV, 2		; <i32> [#uses=2]
 	br i1 %C, label %BE1, label %BE2
 BE1:		; preds = %Loop





More information about the llvm-commits mailing list