2008-03-10 15:21:50 +08:00
|
|
|
; RUN: llvm-as < %s | opt -tailduplicate -disable-output
|
2003-07-23 11:32:11 +08:00
|
|
|
|
2008-03-10 15:21:50 +08:00
|
|
|
define i32 @sum() {
|
2003-07-23 11:32:11 +08:00
|
|
|
entry:
|
|
|
|
br label %loopentry
|
2008-03-10 15:21:50 +08:00
|
|
|
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]
|
2003-07-23 11:32:11 +08:00
|
|
|
br label %loopentry
|
|
|
|
}
|
2008-03-10 15:21:50 +08:00
|
|
|
|