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 8fa9911..ad9d0ab 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;