Ideally we'd also handle unused middles of vectors and reswizzle ALU-only uses of it so we could write fewer channels, but that's future work/
1c9906d5ff2 nir: Add a pass to cut the trailing ends of vectors.
src/compiler/Makefile.sources | 1 +
src/compiler/nir/meson.build | 1 +
src/compiler/nir/nir.h | 1 +
src/compiler/nir/nir_opt_shrink_vectors.c | 210 ++++++++++++++++++++++++++++++
4 files changed, 213 insertions(+)