The version that takes a list of instructions is not used. I did not do
any archaeology to find out when the last user was removed.
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22299>
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
}
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)
{
assert(inst_is_in_block(block, this) || !"Instruction not in block");