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(+)