blob: 81a996adfee23718f5703c26636c8c39cf997865 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -tailduplicate -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner003eae52008-03-10 07:21:50 +00003define void @ab() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004entry:
5 br label %loopentry.5
Tanya Lattner003eae52008-03-10 07:21:50 +00006loopentry.5: ; preds = %no_exit.5, %entry
7 %poscnt.1 = phi i64 [ 0, %entry ], [ %tmp.289, %no_exit.5 ] ; <i64> [#uses=1]
8 %tmp.289 = ashr i64 %poscnt.1, 1 ; <i64> [#uses=1]
9 br i1 false, label %no_exit.5, label %loopexit.5
10no_exit.5: ; preds = %loopentry.5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011 br label %loopentry.5
Tanya Lattner003eae52008-03-10 07:21:50 +000012loopexit.5: ; preds = %loopentry.5
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013 ret void
14}
Tanya Lattner003eae52008-03-10 07:21:50 +000015