aco: don't create phis with undef operands in the boolean phi pass
authorRhys Perry <pendingchaos02@gmail.com>
Fri, 10 Jul 2020 15:31:31 +0000 (16:31 +0100)
committerMarge Bot <eric+marge@anholt.net>
Fri, 10 Jul 2020 22:36:14 +0000 (22:36 +0000)
commit19ca34ed270e20ed9ba02e3ea780f057eca2bae1
tree8056956fc17762ef7de4e43bd126384c2d438b3d
parent9a089baff1af757b1c0f033f4bb16cb2c8864271
aco: don't create phis with undef operands in the boolean phi pass

We can create better merge code is we pass on undef.

fossil-db (Navi):
Totals from 1208 (0.89% of 135946) affected shaders:
SGPRs: 66864 -> 66200 (-0.99%); split: -1.04%, +0.05%
SpillSGPRs: 1179 -> 1156 (-1.95%)
CodeSize: 6516672 -> 6469564 (-0.72%); split: -0.76%, +0.04%
Instrs: 1232680 -> 1220859 (-0.96%); split: -0.97%, +0.01%

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_lower_phis.cpp