1 ; RUN: opt < %s -instcombine -S | not grep {phi i32}
9 %i = ptrtoint i32* %a to i32
11 br i1 %b, label %one, label %two
14 %x = phi i32 [%i, %entry], [%y, %two]
16 br i1 %c, label %two, label %end
19 %y = phi i32 [%i, %entry], [%x, %one]
21 br i1 %d, label %one, label %end
24 %f = phi i32 [ %x, %one], [%y, %two]
25 ; Change the %f to %i, and the optimizer suddenly becomes a lot smarter
26 ; even though %f must equal %i at this point
27 %g = inttoptr i32 %f to i32*