broadcom/compiler: disable flags optimization for loop conditions
authorIago Toral Quiroga <itoral@igalia.com>
Fri, 10 Jun 2022 08:46:51 +0000 (10:46 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 14 Jun 2022 11:30:33 +0000 (11:30 +0000)
commita97f78eb144ebc8964b891bbf708659e70e5f1c3
tree68c743744ad4316eca36f844965867ef93adc7f9
parent2b0e45b18e0c29b9a3487df683369864f86d5c88
broadcom/compiler: disable flags optimization for loop conditions

This is not safe because it may skip regenerating the flags for the
loop condition in the loop continue block and these flags may be
stomped in the loop body by other conditionals.

Fixes: 9909fe6ba ('broadcom/compiler: Skip bool_to_cond where possible')
Reviewed-by: Alejandro PiƱeiro <apinheiro@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17020>
src/broadcom/compiler/nir_to_vir.c