nir/lower_int64: Optionally lower ufind_msb using uadd_sat
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 12 Oct 2022 21:21:02 +0000 (14:21 -0700)
committerMarge Bot <emma+marge@anholt.net>
Fri, 10 Mar 2023 15:27:17 +0000 (15:27 +0000)
commit0cadc3830fa617750d96c133391cc82ff26d531a
tree1ae24d03b36a8d576ef4164382680c15b530d634
parent831f9d3f615ca5228e9614191d76f95735bfc2cc
nir/lower_int64: Optionally lower ufind_msb using uadd_sat

v2: Fix inverted condition for applying the optimization. Noticed by
Ken.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19042>
src/compiler/nir/nir_lower_int64.c