nir/gce: pin call instructions

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16202>
This commit is contained in:
Karol Herbst 2022-04-26 21:22:43 +02:00 committed by Marge Bot
parent ad34d81c48
commit 9ff04985b9

View file

@ -381,6 +381,10 @@ gcm_pin_instructions(nir_function_impl *impl, struct gcm_state *state)
pin_intrinsic(nir_instr_as_intrinsic(instr));
break;
case nir_instr_type_call:
instr->pass_flags = GCM_INSTR_PINNED;
break;
case nir_instr_type_jump:
case nir_instr_type_ssa_undef:
case nir_instr_type_phi: