blob: f963780a21fc0d9a2cde2949c7a48fd0a522d6d1 [file] [log] [blame]
Chris Lattneree7e2862004-04-12 20:59:07 +00001; RUN: llvm-as < %s | 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}