nir: Add a small pass to rematerialize derefs per-block

Graphics / Mesa 3D Graphics Library / Mesa - Jason Ekstrand [intel.com] - 19 September 2018 06:59 EDT

This pass re-materializes deref instructions on a per-block basis to ensure that every use of a deref occurs in the same block as the instruction which uses it.

7d1d1208c2 nir: Add a small pass to rematerialize derefs per-block
src/compiler/nir/nir.h | 1 +
src/compiler/nir/nir_deref.c | 133 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 134 insertions(+)

Upstream: cgit.freedesktop.org


  • Share