At Chris' suggestion, move the liveness and worklist datastructures into
[oota-llvm.git] / test / Transforms / IndVarsSimplify / 2003-09-23-NotAtTop.ll
index ccb578737226ed534532352ce7c2e16c8e9e7400..da22cf2e516419219fde54a43cbbd1eb28d26f5d 100644 (file)
@@ -3,14 +3,15 @@
 ; The indvar simplification code should ensure that the first PHI in the block 
 ; is the canonical one!
 
-int %test() {
-       br label %Loop
-Loop:
-       %NonIndvar = phi int [200, %0], [%NonIndvarNext, %Loop]
-       %Canonical = phi int [0, %0], [%CanonicalNext, %Loop]
+define i32 @test() {
+; <label>:0
+        br label %Loop
 
-       %NonIndvarNext = div int %NonIndvar, 2
-       %CanonicalNext = add int %Canonical, 1
-       br label %Loop
+Loop:           ; preds = %Loop, %0
+        %NonIndvar = phi i32 [ 200, %0 ], [ %NonIndvarNext, %Loop ]             ; <i32> [#uses=1]
+        %Canonical = phi i32 [ 0, %0 ], [ %CanonicalNext, %Loop ]               ; <i32> [#uses=1]
+        %NonIndvarNext = sdiv i32 %NonIndvar, 2         ; <i32> [#uses=1]
+        %CanonicalNext = add i32 %Canonical, 1          ; <i32> [#uses=1]
+        br label %Loop
 }