blob: 12250b78ebd2317d6e9ada841b4cfde400b8ab49 [file] [log] [blame]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00001; RUN: llvm-upgrade < %s | llvm-as | opt -loopsimplify -disable-output
2
3implementation
4
5void %test() {
6loopentry.0:
7 br label %loopentry.1
8
9loopentry.1:
10 %pixel.4 = phi int [ 0, %loopentry.0 ], [ %pixel.4, %loopentry.1], [ %tmp.370, %then.6 ], [ %tmp.370, %then.6 ]
11 br bool false, label %then.6, label %loopentry.1
12
13then.6:
14 %tmp.370 = add int 0, 0 ; <int> [#uses=2]
15 switch uint 0, label %label.7 [
16 uint 6408, label %loopentry.1
17 uint 32841, label %loopentry.1
18 ]
19
20label.7: ; preds = %then.6
21 ret void
22}