aco: create better code for boolean phis with constant operands
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 6 Jan 2020 16:50:41 +0000 (16:50 +0000)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Jul 2020 22:36:14 +0000 (22:36 +0000)
commitf622e80494f209a0c51cc804bb900eefe8f2fdaa
treeaff2bb14f2288d35243d7dc590b711a5b8725130
parent47b0653d5dc7e7e6bed9263254e7436ca8b830cd
aco: create better code for boolean phis with constant operands

fossil-db (Navi):
Totals from 6394 (4.70% of 135946) affected shaders:
SGPRs: 651408 -> 651344 (-0.01%)
SpillSGPRs: 52102 -> 52019 (-0.16%)
CodeSize: 68369664 -> 68229180 (-0.21%); split: -0.21%, +0.00%
Instrs: 13236611 -> 13202126 (-0.26%); split: -0.26%, +0.00%

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3388>
src/amd/compiler/aco_instruction_selection.cpp
src/amd/compiler/aco_lower_phis.cpp