nir/lower_atomics: Rework the main walker loop a bit
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 20 Mar 2018 22:44:16 +0000 (15:44 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 11 Apr 2018 02:28:49 +0000 (19:28 -0700)
commitae3a856c34e348f721c2d647999813801b5eb33c
tree32cf54ecff7a663d35528bde0493814773a8c6e8
parented9463815644c85c124c72111d96e256db2986b4
nir/lower_atomics: Rework the main walker loop a bit

This replaces some "if (...} { }" with "if (...) continue;" to reduce
nesting depth and makes nir_metadata_preserve conditional on progress
for the given impl.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
src/compiler/nir/nir_lower_atomics.c