1 ; RUN: opt < %s -S -passes=gvn-sink | FileCheck %s
3 ; Because %tmp17 has flipped operands to its equivalents %tmp14 and %tmp7, we
4 ; can't sink the zext as we'd need a shuffling PHI in between.
6 ; Just sinking the zext isn't profitable, so ensure nothing is sunk.
9 ; CHECK-NOT: bb18.gvnsink.split
10 define void @hoge(i1 %arg) {
12 br i1 %arg, label %bb4, label %bb11
15 br i1 %arg, label %bb6, label %bb8
18 %tmp = zext i16 undef to i64
19 %tmp7 = add i64 %tmp, undef
23 %tmp9 = zext i16 undef to i64
27 br i1 %arg, label %bb12, label %bb15
30 %tmp13 = zext i16 undef to i64
31 %tmp14 = add i64 %tmp13, undef
35 %tmp16 = zext i16 undef to i64
36 %tmp17 = add i64 undef, %tmp16
39 bb18: ; preds = %bb15, %bb12, %bb8, %bb6
40 %tmp19 = phi i64 [ %tmp7, %bb6 ], [ undef, %bb8 ], [ %tmp14, %bb12 ], [ %tmp17, %bb15 ]