1 ; RUN: %lli -jit-kind=mcjit %s > /dev/null
2 ; RUN: %lli %s > /dev/null
5 @Y = global i32 6 ; <ptr> [#uses=1]
7 define void @blah(ptr %X) {
10 T: ; preds = %Dead, %0
11 phi ptr [ %X, %0 ], [ @Y, %Dead ] ; <ptr>: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]