nir/copy_prop_vars: Ignore volatile accesses
authorConnor Abbott <cwabbott0@gmail.com>
Wed, 5 Jun 2019 08:23:00 +0000 (10:23 +0200)
committerConnor Abbott <cwabbott0@gmail.com>
Wed, 19 Jun 2019 12:08:28 +0000 (14:08 +0200)
commit75063fbac522bcbc2e009c292d666e5aadc2d1f1
tree480cb6856fa3df7e0d051552d2dda12c8801ed07
parent364996d70dec716707493d667e17d2c1efcb7259
nir/copy_prop_vars: Ignore volatile accesses

The spec explicitly says that volatile writes can't be removed and
volatile reads do not guarantee that the same value will still be around
after the read, as if there were a barrier after each read/write. Just
ignore them.

Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/compiler/nir/nir_opt_copy_prop_vars.c