nir: Add tests for copy propagation of derefs
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 12 Sep 2018 21:33:59 +0000 (14:33 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 16 Oct 2018 00:29:46 +0000 (17:29 -0700)
commit797f01c220aa22a1381d81479fe86033e41a9147
tree0c1cf51257ed2cad11c0c81fbb69b039ba31daad
parent4dfa7adc100061f96e15fcbbfa5f776cd6c5a94a
nir: Add tests for copy propagation of derefs

Also tests for removal of redundant loads, that we currently handle as
part of the copy propagation.

Note some tests involve multiple blocks and are currently DISABLED
because they (expectedly) fail.

v2: Add missing DISABLED prefix to "multi block" tests. (Jason)

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/nir/tests/vars_tests.cpp