nir/algebraic: sqrt(x)*sqrt(x) -> fabs(x)
authorElie Tournier <tournier.elie@gmail.com>
Fri, 24 May 2019 11:16:25 +0000 (12:16 +0100)
committerMarge Bot <eric+marge@anholt.net>
Wed, 15 Jan 2020 00:30:52 +0000 (00:30 +0000)
commit22c5c54a4fffb7d0179218ec8cec237cbc049160
treebcb9b21dde46ef7cfdaaa2ba031d8298d91aa8b2
parent6f394343b1f704f8b98a24add7f4106e72e2db7b
nir/algebraic: sqrt(x)*sqrt(x) -> fabs(x)

total instructions in shared programs: 12840840 -> 12839341 (-0.01%)
instructions in affected programs: 122581 -> 121082 (-1.22%)
helped: 559
HURT: 0

total cycles in shared programs: 302505756 -> 302490031 (<.01%)
cycles in affected programs: 2022900 -> 2007175 (-0.78%)
helped: 1090
HURT: 130

Signed-off-by: Elie Tournier <elie.tournier@collabora.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/948>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/948>
src/compiler/nir/nir_opt_algebraic.py