microsoft/compiler: Don't separate phis while inserting upcasts

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4414
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9464>
This commit is contained in:
Jesse Natalie
2021-03-08 11:56:55 -08:00
committed by Marge Bot
parent ef0d2a5b4b
commit fe90bcf11a

View File

@@ -1063,7 +1063,7 @@ cast_phi(nir_builder *b, nir_phi_instr *phi, unsigned new_bit_size)
assert(num_components == 0 || num_components == src->src.ssa->num_components);
num_components = src->src.ssa->num_components;
b->cursor = nir_after_instr(src->src.ssa->parent_instr);
b->cursor = nir_after_instr_and_phis(src->src.ssa->parent_instr);
nir_ssa_def *cast = nir_build_alu(b, upcast_op, src->src.ssa, NULL, NULL, NULL);