blob: 427631c07f2a810318dfaa773fff54c471f52eeb [file] [log] [blame]
Tanya Lattner348c6182008-03-25 04:26:08 +00001; RUN: llvm-as < %s | opt -scalarrepl -loopsimplify -licm -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner348c6182008-03-25 04:26:08 +00003define void @inflate() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004entry:
5 br label %loopentry.0.outer1111
Tanya Lattner348c6182008-03-25 04:26:08 +00006loopentry.0.outer1111: ; preds = %then.41, %label.11, %loopentry.0.outer1111, %entry
7 %left.0.ph1107 = phi i32 [ %tmp.1172, %then.41 ], [ 0, %entry ], [ %tmp.1172, %label.11 ], [ %left.0.ph1107, %loopentry.0.outer1111 ] ; <i32> [#uses=2]
8 %tmp.1172 = sub i32 %left.0.ph1107, 0 ; <i32> [#uses=2]
9 switch i32 0, label %label.11 [
10 i32 23, label %loopentry.0.outer1111
11 i32 13, label %then.41
Dan Gohmanf17a25c2007-07-18 16:29:46 +000012 ]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000013label.11: ; preds = %loopentry.0.outer1111
14 br label %loopentry.0.outer1111
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015then.41: ; preds = %loopentry.0.outer1111
16 br label %loopentry.0.outer1111
17}
Tanya Lattner348c6182008-03-25 04:26:08 +000018