nir/unsigned_upper_bound: fix phi(bcsel)
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 3 Jul 2023 17:36:28 +0000 (18:36 +0100)
committerMarge Bot <emma+marge@anholt.net>
Mon, 17 Jul 2023 14:45:21 +0000 (14:45 +0000)
commit1139d870f38e7458155c192e1b5a3fe322a7c63c
treeb8b72d8c68b327b362cec085d3521d893d9760c1
parent34c4a195f9391fb8257a68ab6a2f9ec986c1c84d
nir/unsigned_upper_bound: fix phi(bcsel)

This was looking at the wrong sources. src0 is the condition.

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Konstantin Seurer <konstantin.seurer@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/23990>
src/compiler/nir/nir_range_analysis.c