nir: Add a pass to combine store_derefs to same vector
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Fri, 8 Mar 2019 18:08:20 +0000 (10:08 -0800)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 13 Mar 2019 15:39:16 +0000 (08:39 -0700)
commit822a8865e4645ed7e1818568d1d0338b462c7748
treef1514d38c31317dc80f0c53dd80ae40de52cb066
parentcbf022cb316f1224f9afcc12ca414fc2d7d778a8
nir: Add a pass to combine store_derefs to same vector

v2: (all from Jason)
    Reuse existing function for the end of the block combinations.
    Check the SSA values are coming from the right place in tests.
    Document the case when the store to array_deref is reused.

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/compiler/Makefile.sources
src/compiler/nir/meson.build
src/compiler/nir/nir.h
src/compiler/nir/nir_opt_combine_stores.c [new file with mode: 0644]
src/compiler/nir/tests/vars_tests.cpp
src/intel/compiler/brw_nir.c