lima/gpir: kill dead writes to regs in DCE
authorVasily Khoruzhick <anarsoul@gmail.com>
Tue, 10 Mar 2020 02:34:43 +0000 (19:34 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Mar 2020 23:08:06 +0000 (23:08 +0000)
commitb7d89476f1e7d0f3b9e751887f42b750a5ec216e
treea17d6287aaf020e79902fef1e74682711087ae03
parent8c1bcc8555ab17a1df043ebc8c2a3ebcf6c400bc
lima/gpir: kill dead writes to regs in DCE

Writes to regs that are never read will confuse regalloc since they
are never live and don't conflict with any regs. Kill them to prevent
overwriting another live reg.

Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4125>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4125>
.gitlab-ci/deqp-lima-fails.txt
.gitlab-ci/deqp-lima-skips.txt
src/gallium/drivers/lima/ir/gp/optimize.c