1 ; RUN: opt < %s -instcombine -simplifycfg -S | grep " = phi " | count 1
3 ; instcombine should sort the PHI operands so that simplifycfg can see the
4 ; duplicate and remove it.
6 define i32 @foo(i1 %t) {
9 br i1 %t, label %true, label %false
14 %a = phi i32 [ 2, %true ], [ 5, %entry ]
15 %b = phi i32 [ 5, %entry ], [ 2, %true ]