nir/opt_if: use nir_src_as_bool in opt_peel_loop_initial_if helper
authorRhys Perry <pendingchaos02@gmail.com>
Mon, 27 Apr 2020 10:53:50 +0000 (11:53 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 19 May 2020 17:46:38 +0000 (17:46 +0000)
commitaca15d5cba6f8a4a7898166648fd0a6f841df1de
treea6a335cd6a5e6611311f072441e97f95412c75ac
parent50bead32b150a869f1c17efbee8476114d1462a7
nir/opt_if: use nir_src_as_bool in opt_peel_loop_initial_if helper

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4757>
src/compiler/nir/nir_opt_if.c