nir/algebraic: optimize b<<a + c<<a
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 17 Oct 2022 19:24:23 +0000 (20:24 +0100)
committerMarge Bot <emma+marge@anholt.net>
Thu, 20 Oct 2022 18:57:23 +0000 (18:57 +0000)
commit1ae73bc0768cafa21897bced6d4d635059569fd1
tree6a129e6a5afcbbd06706be46c01187e32dd65177
parent26abdef5bcaf0c58bd397bf0eb4aa4d362b55a8d
nir/algebraic: optimize b<<a + c<<a

fossil-db (navi21):
Totals from 248 (0.18% of 135636) affected shaders:
Instrs: 85836 -> 85611 (-0.26%); split: -0.27%, +0.00%
CodeSize: 481304 -> 480332 (-0.20%); split: -0.21%, +0.00%
Latency: 9596559 -> 9596152 (-0.00%); split: -0.00%, +0.00%
InvThroughput: 1423707 -> 1423670 (-0.00%)
SClause: 3872 -> 3874 (+0.05%)
PreSGPRs: 5034 -> 5038 (+0.08%)

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19137>
src/compiler/nir/nir_opt_algebraic.py