aco: don't apply dpp if the alu instr uses the operand twice
authorGeorg Lehmann <dadschoorse@gmail.com>
Tue, 25 Apr 2023 18:56:18 +0000 (20:56 +0200)
committerMarge Bot <emma+marge@anholt.net>
Fri, 12 May 2023 13:31:16 +0000 (13:31 +0000)
commit04976beac7d9d5455753a0e964db71c37b7cb3d8
tree1f4f4e71808f6259ab931cd867eabea43092dd71
parent151bcc1e8bbc9b012616ae418a59c215b0e6e807
aco: don't apply dpp if the alu instr uses the operand twice

CP77 has a ton of fma(dpp(a), dpp(a), b).

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22698>
src/amd/compiler/aco_optimizer.cpp
src/amd/compiler/aco_optimizer_postRA.cpp