aco: Pop branch operands when targets are same in SSA elimination.
authorTimur Kristóf <timur.kristof@gmail.com>
Sun, 2 Apr 2023 22:05:09 +0000 (00:05 +0200)
committerMarge Bot <emma+marge@anholt.net>
Mon, 3 Apr 2023 14:36:07 +0000 (14:36 +0000)
commit0eb7c49c7f5d429b6d322ff751625b84afa644a6
tree3c3388be258dcda107220a6a8dd1b74f3bfcee24
parent739bd03c375ff09b6af240866adfa98920457510
aco: Pop branch operands when targets are same in SSA elimination.

The branch instruction is no longer conditional when the targets are the
same, so the operand is not necessary and can be removed.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21493>
src/amd/compiler/aco_ssa_elimination.cpp