nir: Account for atomics in copy propagation.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 17 Jan 2019 18:54:20 +0000 (19:54 +0100)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Thu, 17 Jan 2019 23:55:35 +0000 (00:55 +0100)
commit8424cd8fbd1671c4c13f57cfa34bf8145d0fffcf
tree5ef2ee4fcc160b60706c46ebb7425168a1444b49
parent927ba12b53c90ebd8a2c4e3806d1052e7d604ded
nir: Account for atomics in copy propagation.

Otherwise writes get propagated across atomics if no barrier is
used. Without barrier writes should still be visible in the same
invocation, so an atomic has to be considered a write.

CC: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fixes: b3c61469255 "nir: Copy propagation between blocks"
Fixes: 62332d139c8 "nir: Add a local variable-based copy propagation pass"
src/compiler/nir/nir_opt_copy_prop_vars.c