nir/opt_if: use nir_alu_instr_is_comparison directly
authorGeorg Lehmann <dadschoorse@gmail.com>
Sun, 28 May 2023 07:12:46 +0000 (09:12 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 30 May 2023 13:04:22 +0000 (13:04 +0000)
commit76a82c3ac9d0eaa37adf86f60e77e8b59bfe81b3
tree260c6a0184939c729c94b925205b284aed30d0db
parent94958e637d11d9dbe9345da1a8ff4048ef441389
nir/opt_if: use nir_alu_instr_is_comparison directly

Since 2d6233d0 ("nir: Check all sizes in nir_alu_instr_is_comparison"),
nir_alu_instr_is_comparison already returns true for comparisons with 32bit
result.

Reviewed-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23287>
src/compiler/nir/nir_opt_if.c