nir: Add tests for dead write elimination
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 29 Aug 2018 23:30:09 +0000 (16:30 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Tue, 16 Oct 2018 00:29:46 +0000 (17:29 -0700)
commita02fd7000d4f1d6912d9916eea3d72b01aa4990f
tree1481bf5a2297dcee86402799770e0fa7a7f4490a
parentbbda2a17f76113b9a6d5b4e3ecc91cdfa9e136a1
nir: Add tests for dead write elimination

Note at the moment the pass called is nir_opt_copy_prop_vars, because
dead write elimination is implemented there.

Also added tests that involve identifying dead writes in multiple
blocks (e.g. the overwrite happens in another block).  Those currently
fail as expected, so are marked to be skipped.

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