blob: 705f8bcdd652cb6d4053f0019e56293082421f3a [file] [log] [blame]
Tanya Lattner003eae52008-03-10 07:21:50 +00001; RUN: llvm-as < %s | opt -tailduplicate -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner003eae52008-03-10 07:21:50 +00003define i32 @sum() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004entry:
5 br label %loopentry
Tanya Lattner003eae52008-03-10 07:21:50 +00006loopentry: ; preds = %loopentry, %entry
7 %i.0 = phi i32 [ 1, %entry ], [ %tmp.3, %loopentry ] ; <i32> [#uses=1]
8 %tmp.3 = add i32 %i.0, 1 ; <i32> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009 br label %loopentry
10}
Tanya Lattner003eae52008-03-10 07:21:50 +000011