nir/algebraic: don't optimize umod/imod/irem if lower_bitops=true
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 21 Jul 2021 16:08:52 +0000 (17:08 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Aug 2021 11:00:39 +0000 (11:00 +0000)
commit65cd5a0f22ed1ca2cae4d2f274101ba6b0753771
tree8bbfa2bbf77d0743816af2b69b8389da5e7a1807
parentec4b425f596d5bbe4c2401b9cfc08d7c9eaa36b0
nir/algebraic: don't optimize umod/imod/irem if lower_bitops=true

Match the udiv/idiv/imul by power-of-two optimizations.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12039>
src/compiler/nir/nir_opt_algebraic.py