pco: temporarily make vecs interfere with their components during regalloc

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta 2025-03-14 15:38:36 +00:00 committed by Marge Bot
parent ea917ae732
commit d10b769130

View file

@ -388,6 +388,15 @@ static bool pco_ra_func(pco_func *func,
}
}
pco_foreach_instr_in_func_rev (vec, func) {
if (vec->op != PCO_OP_VEC)
continue;
pco_foreach_instr_src_ssa (psrc, vec) {
ra_add_node_interference(ra_graph, vec->dest[0].val, psrc->val);
}
}
bool allocated = ra_allocate(ra_graph);
assert(allocated);
/* TODO: spilling. */