nir: fix signed overflow for iadd constant folding
authorRhys Perry <pendingchaos02@gmail.com>
Thu, 29 Jul 2021 10:12:29 +0000 (11:12 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 9 Aug 2021 11:00:39 +0000 (11:00 +0000)
commite008eb12247ee2ad7410b0073b5f144a47767ec4
tree889a6a49666edd2e987f2f290bec52491254376e
parentb627b9fcecbbf437c11a6639fb8e5221b462a148
nir: fix signed overflow for iadd constant folding

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_opcodes.py