Fix test.
[oota-llvm.git] / test / Transforms / TailDup / 2003-07-22-InfiniteLoop.ll
index c7233395bcc8ab2044d934a5b1e6ec796b17d49d..705f8bcdd652cb6d4053f0019e56293082421f3a 100644 (file)
@@ -1,13 +1,11 @@
 ; RUN: llvm-as < %s | opt -tailduplicate -disable-output
 
-implementation
-
-int %sum() {
+define i32 @sum() {
 entry:
        br label %loopentry
-
-loopentry:
-       %i.0 = phi int [ 1, %entry ], [ %tmp.3, %loopentry ]
-       %tmp.3 = add int %i.0, 1
+loopentry:             ; preds = %loopentry, %entry
+       %i.0 = phi i32 [ 1, %entry ], [ %tmp.3, %loopentry ]            ; <i32> [#uses=1]
+       %tmp.3 = add i32 %i.0, 1                ; <i32> [#uses=1]
        br label %loopentry
 }
+