nir/gce: pin call instructions
authorKarol Herbst <kherbst@redhat.com>
Tue, 26 Apr 2022 19:22:43 +0000 (21:22 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 31 May 2022 12:36:48 +0000 (12:36 +0000)
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>

src/compiler/nir/nir_opt_gcm.c

index 5550cf2..4546e23 100644 (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: