1 ; RUN: opt < %s -basicaa -gvn -S | grep "DEAD = phi i32 " 2 3 define i32 @main(i32* %p, i32 %x, i32 %y) { 4 block1: 5 %z = load i32* %p 6 %cmp = icmp eq i32 %x, %y 7 br i1 %cmp, label %block2, label %block3 8 9 block2: 10 br label %block4 11 12 block3: 13 %b = bitcast i32 0 to i32 14 store i32 %b, i32* %p 15 br label %block4 16 17 block4: 18 %DEAD = load i32* %p 19 ret i32 %DEAD 20 } 21