brw: Use brw_inst::block in CSE

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33815>
This commit is contained in:
Caio Oliveira
2025-02-27 23:25:08 -08:00
committed by Marge Bot
parent b0b0fa8624
commit 7924d48bcd
+1 -3
View File
@@ -35,7 +35,6 @@
struct remap_entry {
brw_inst *inst;
bblock_t *block;
enum brw_reg_type type;
unsigned nr;
bool negate;
@@ -484,7 +483,6 @@ brw_opt_cse_defs(brw_shader &s)
need_remaps = true;
remap_table[inst->dst.nr].inst = inst;
remap_table[inst->dst.nr].block = block;
remap_table[inst->dst.nr].type = match->dst.type;
remap_table[inst->dst.nr].nr = match->dst.nr;
remap_table[inst->dst.nr].negate = negate;
@@ -499,7 +497,7 @@ brw_opt_cse_defs(brw_shader &s)
continue;
if (!remap_table[i].still_used) {
remap_table[i].inst->remove(remap_table[i].block, true);
remap_table[i].inst->remove(remap_table[i].inst->block, true);
progress = true;
}
}