MC: Eliminate MCFragment vtable, which was unnecessary.
[llvm.git] / test / Transforms / TailDup / basictest.ll
blob94f5d87ad2bbc1b15cf66e76615ad5468961d688
1 ; RUN: opt < %s -tailduplicate -disable-output
3 declare void @__main()
5 define i32 @main() {
6 entry:
7         call void @__main( )
8         br label %loopentry
9 loopentry:              ; preds = %no_exit, %entry
10         %i.0 = phi i32 [ %inc, %no_exit ], [ 0, %entry ]                ; <i32> [#uses=3]
11         %tmp.1 = icmp sle i32 %i.0, 99          ; <i1> [#uses=1]
12         br i1 %tmp.1, label %no_exit, label %return
13 no_exit:                ; preds = %loopentry
14         %tmp.51 = call i32 @main( )             ; <i32> [#uses=0]
15         %inc = add i32 %i.0, 1          ; <i32> [#uses=1]
16         br label %loopentry
17 return:         ; preds = %loopentry
18         ret i32 %i.0