nir/idiv_const: improve idiv(n, INT_MIN)
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 21 Jul 2021 16:15:51 +0000 (17:15 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Aug 2021 11:00:39 +0000 (11:00 +0000)
commit96168301f92aa4e503a22ae83c29c8e08ea285c5
treed6beae045f4044b62a7a92358e298ca2e4b5c331
parent4e2b94331bad05595e2af34afb933810922c66ec
nir/idiv_const: improve idiv(n, INT_MIN)

This lowering is smaller and -INT64_MIN is probably UB (signed overflow).

No fossil-db changes.

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_idiv_const.c