nir/range_analysis: add missing masking of shift amounts
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 15 Mar 2023 16:11:12 +0000 (16:11 +0000)
committerMarge Bot <emma+marge@anholt.net>
Wed, 22 Mar 2023 09:24:18 +0000 (09:24 +0000)
commit2145cf3dd1d6eb8bd4e6095ca1f673dc6dacb1ff
tree67fd0eb376d9fb0192656ddda675535620ad1e83
parent63e8f77d8e0c6aa6745f719cfd08c4a58924b9d5
nir/range_analysis: add missing masking of shift amounts

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Georg Lehmann <dadschoorse@gmail.com>
Fixes: 72ac3f60261 ("nir: add nir_unsigned_upper_bound and nir_addition_might_overflow")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21381>
src/compiler/nir/nir_range_analysis.c