At Chris' suggestion, move the liveness and worklist datastructures into
[oota-llvm.git] / test / Transforms / IndVarsSimplify / 2007-01-06-TripCount.ll
index 7f79091321deb5dac04b12838f30bd07585df992..dd151e84d00e78055515c9fbad8448fb51e8eccc 100644 (file)
@@ -1,13 +1,11 @@
-; RUN: llvm-as < %s | opt -indvars -disable-output &&
-; RUN: llvm-as < %s | opt -indvars | llvm-dis | not grep 'ret i32 0'
 ; PR1015
+; RUN: llvm-as < %s | opt -indvars | llvm-dis | not grep {ret i32 0}
 
 target datalayout = "e-p:32:32"
 target triple = "i686-apple-darwin8"
 @foo = internal constant [5 x i8] c"\00abc\00"         ; <[5 x i8]*> [#uses=1]
 @str = internal constant [4 x i8] c"%d\0A\00"          ; <[4 x i8]*> [#uses=1]
 
-implementation   ; Functions:
 
 define i32 @test(i32 %J) {
 entry:
@@ -26,9 +24,9 @@ cond_true:            ; preds = %bb2
        br label %bb
 
 cond_next:             ; preds = %bb2
-       %tmp = getelementptr [5 x i8]* @foo, i32 0, i32 %i.0            ; <i8*> [#uses=1]
-       %tmp = load i8* %tmp            ; <i8> [#uses=1]
-       %tmp5 = icmp eq i8 %tmp, 0              ; <i1> [#uses=1]
+       %tmp2 = getelementptr [5 x i8]* @foo, i32 0, i32 %i.0           ; <i8*> [#uses=1]
+       %tmp3 = load i8* %tmp2          ; <i8> [#uses=1]
+       %tmp5 = icmp eq i8 %tmp3, 0             ; <i1> [#uses=1]
        br i1 %tmp5, label %bb6, label %bb
 
 bb6:           ; preds = %cond_next