From 70c6bff2f01620bf10258067b6e2ef4ac0959f53 Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Sat, 9 Nov 2019 02:13:25 +0100 Subject: [PATCH] nir: handle nir_deref_type_ptr_as_array in rematerialize_deref_in_block I forgot why that was required, but it still is the correct thing to do. Hit it at some point when working on implementing more CL features. Signed-off-by: Karol Herbst Reviewed-by: Dave Airlie --- src/compiler/nir/nir_deref.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compiler/nir/nir_deref.c b/src/compiler/nir/nir_deref.c index f8b48946cff..02f77d622bd 100644 --- a/src/compiler/nir/nir_deref.c +++ b/src/compiler/nir/nir_deref.c @@ -644,6 +644,7 @@ rematerialize_deref_in_block(nir_deref_instr *deref, break; case nir_deref_type_array: + case nir_deref_type_ptr_as_array: assert(!nir_src_as_deref(deref->arr.index)); nir_src_copy(&new_deref->arr.index, &deref->arr.index, new_deref); break; -- 2.30.2