nir: allow opt_peephole_select to handle nir_instr_type_deref
authorTimothy Arceri <tarceri@itsqueeze.com>
Sun, 15 Jul 2018 23:26:33 +0000 (09:26 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 17 Jul 2018 23:53:22 +0000 (09:53 +1000)
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/nir_opt_peephole_select.c

index 8fa99117f4c0fccfb5d58af867f56e6b278a23f1..ad9d0abec0369c057de2279ac76247470d4df86b 100644 (file)
@@ -89,6 +89,7 @@ block_check_for_allowed_instrs(nir_block *block, unsigned *count, bool alu_ok)
          break;
       }
 
+      case nir_instr_type_deref:
       case nir_instr_type_load_const:
          break;