lima/gpir: Optimize nots created from branch lowering
authorConnor Abbott <cwabbott0@gmail.com>
Fri, 4 Oct 2019 14:16:52 +0000 (10:16 -0400)
committerMarge Bot <eric+marge@anholt.net>
Mon, 16 Mar 2020 23:08:06 +0000 (23:08 +0000)
commit8c1bcc8555ab17a1df043ebc8c2a3ebcf6c400bc
tree3df897716ed3be51fdf52def06143c71f885804b
parent47dacf3867194fd456f015bc2a54d2ee4af30f4c
lima/gpir: Optimize nots created from branch lowering

We also add a DCE pass to cleanup the result of this pass, which turns
out to also be necessary to cleanup the result of nir->gpir in some
cases that we didn't hit until the next commit.

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4125>
src/gallium/drivers/lima/ir/gp/optimize.c