1 ; RUN: llvm-as %s -o %t.bc
2 ; RUN: lli %t.bc > /dev/null
5 @Y = global i32 6 ; <i32*> [#uses=1]
7 define void @blah(i32* %X) {
10 T: ; preds = %Dead, %0
11 phi i32* [ %X, %0 ], [ @Y, %Dead ] ; <i32*>:1 [#uses=0]
13 Dead: ; No predecessors!
17 define i32 @test(i1 %C) {
19 br i1 %C, label %T, label %T
21 %X = phi i32 [ 123, %0 ], [ 123, %0 ] ; <i32> [#uses=1]
28 Test: ; preds = %Dead, %0
29 %X = phi i32 [ 0, %0 ], [ %Y, %Dead ] ; <i32> [#uses=1]
31 Dead: ; No predecessors!
32 %Y = ashr i32 12, 4 ; <i32> [#uses=1]