1 ; RUN: llc -mcpu=skylake-avx512 -mtriple=x86_64-unknown-linux-gnu %s -o - | FileCheck %s
3 ; Check that the X86 Domain Reassignment pass doesn't drop IMPLICIT_DEF nodes,
4 ; which would later cause crashes (e.g. in LiveVariables) - see PR37430
5 define void @domain_reassignment_implicit_def(i1 %cond, i8 *%mem, float %arg) {
6 ; CHECK: vxorps %xmm1, %xmm1, %xmm1
7 ; CHECK: vcmpneqss %xmm1, %xmm0, %k0
8 ; CHECK: kmovb %k0, (%rsi)
10 br i1 %cond, label %L19, label %L15
13 %tmp47 = fcmp une float 0.000000e+00, %arg
14 %tmp48 = zext i1 %tmp47 to i8
20 L21: ; preds = %L19, %L15
21 %.sroa.0.0 = phi i8 [ undef, %L19 ], [ %tmp48, %L15 ]
22 store i8 %.sroa.0.0, i8* %mem, align 1