nir: Add a pass to cut the trailing ends of vectors.