nir/copy_prop_vars: Handle volatile better
authorJason Ekstrand <jason@jlekstrand.net>
Tue, 14 Apr 2020 16:01:15 +0000 (11:01 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 28 Apr 2020 22:55:25 +0000 (22:55 +0000)
commitd9af5277b36a01af4cc6870c542a8059848a6e4d
tree0c0dbf53d522077fd6ea257776624cf8192745e8
parent118f045fb7d1c6520e808317235c175833237631
nir/copy_prop_vars: Handle volatile better

For deref_store, we can still delete invalid stores that write to
statically OOB data.  For everything, we need to make sure that we kill
aliases of destinations even if it's volatile.

Reviewed-by: Caio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4767>
src/compiler/nir/nir_opt_copy_prop_vars.c