diff --git a/src/intel/compiler/brw_ir.h b/src/intel/compiler/brw_ir.h index 0074f74112b..1755c15b46f 100644 --- a/src/intel/compiler/brw_ir.h +++ b/src/intel/compiler/brw_ir.h @@ -110,7 +110,6 @@ struct backend_instruction : public exec_node { void remove(bblock_t *block, bool defer_later_block_ip_updates = false); void insert_after(bblock_t *block, backend_instruction *inst); void insert_before(bblock_t *block, backend_instruction *inst); - void insert_before(bblock_t *block, exec_list *list); /** * True if the instruction has side effects other than writing to diff --git a/src/intel/compiler/brw_shader.cpp b/src/intel/compiler/brw_shader.cpp index a8705835f1b..bf12c95d01f 100644 --- a/src/intel/compiler/brw_shader.cpp +++ b/src/intel/compiler/brw_shader.cpp @@ -1204,21 +1204,6 @@ backend_instruction::insert_before(bblock_t *block, backend_instruction *inst) exec_node::insert_before(inst); } -void -backend_instruction::insert_before(bblock_t *block, exec_list *list) -{ - assert(inst_is_in_block(block, this) || !"Instruction not in block"); - assert(block->end_ip_delta == 0); - - unsigned num_inst = list->length(); - - block->end_ip += num_inst; - - adjust_later_block_ips(block, num_inst); - - exec_node::insert_before(list); -} - void backend_instruction::remove(bblock_t *block, bool defer_later_block_ip_updates) {