broadcom/compiler: don't assign rf0 to temps across implicit rf0 writes
authorIago Toral Quiroga <itoral@igalia.com>
Wed, 29 Sep 2021 10:14:04 +0000 (12:14 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 13 Oct 2023 22:37:42 +0000 (22:37 +0000)
commit2b15df963ef142bcf4b075253be3d82d3272a60c
tree2b0493c92ac8fa807dc40c8fd5e614afbf144a42
parent03594b3dcaf31226d3417ecf2829c7cabad4d54e
broadcom/compiler: don't assign rf0 to temps across implicit rf0 writes

In platforms that don't have accumulators and have implicit writes to
the register file we need to be careful and avoid assigning a physical
register to a temp that lives across an implicit write to that same
physical register.

For now, we have the case of implicit writes to rf0 from various
signals, but it should be easy to extend this to include additional
registers if needed.

Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25450>
src/broadcom/compiler/vir_register_allocate.c