nir/lower_idiv: make lowered divisions exact
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 7 Apr 2021 18:45:57 +0000 (19:45 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 12 Apr 2021 16:19:46 +0000 (16:19 +0000)
commit254360d96cab8a5868d4f7b795c4b2816295f468
tree5c19ebcfb66838069241dc6a762285f55e477912
parenta2619b97f53a30d74920ee6b819e943291641f9d
nir/lower_idiv: make lowered divisions exact

I can't imagine any reasonable optimization which could break this, but
since it's lowered from an integer instructions, we shouldn't do anything
which could change the result.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10081>
src/compiler/nir/nir_lower_idiv.c