[llvm-commits] [llvm] r70333 - /llvm/trunk/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll

Dan Gohman gohman at apple.com
Tue Apr 28 15:03:27 PDT 2009


Author: djg
Date: Tue Apr 28 17:03:26 2009
New Revision: 70333

URL: http://llvm.org/viewvc/llvm-project?rev=70333&view=rev
Log:
Make this testcase slightly less trivial, so that it doesn't fail
if indvars happens to optimize away the unused primary induction
variable.

Modified:
    llvm/trunk/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll

Modified: llvm/trunk/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll?rev=70333&r1=70332&r2=70333&view=diff

==============================================================================
--- llvm/trunk/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll (original)
+++ llvm/trunk/test/Transforms/IndVarSimplify/2003-09-23-NotAtTop.ll Tue Apr 28 17:03:26 2009
@@ -9,7 +9,8 @@
 
 Loop:           ; preds = %Loop, %0
         %NonIndvar = phi i32 [ 200, %0 ], [ %NonIndvarNext, %Loop ]             ; <i32> [#uses=1]
-        %Canonical = phi i32 [ 0, %0 ], [ %CanonicalNext, %Loop ]               ; <i32> [#uses=1]
+        %Canonical = phi i32 [ 0, %0 ], [ %CanonicalNext, %Loop ]               ; <i32> [#uses=2]
+        store i32 %Canonical, i32* null
         %NonIndvarNext = sdiv i32 %NonIndvar, 2         ; <i32> [#uses=1]
         %CanonicalNext = add i32 %Canonical, 1          ; <i32> [#uses=1]
         br label %Loop





More information about the llvm-commits mailing list