i965: Enable vector shrinking in the vec4 backend.
authorEric Anholt <eric@anholt.net>
Thu, 23 Jul 2020 04:35:07 +0000 (21:35 -0700)
committerMarge Bot <eric+marge@anholt.net>
Mon, 3 Aug 2020 21:26:45 +0000 (21:26 +0000)
commit023e6669cc1d7d321e0bd5b5293422cd73b3d658
treeb366d075fc380e3bef0da5c9335a0c2d3f90392f
parent1c9906d5ff22234b4e2c5c1c81a42a8766706b34
i965: Enable vector shrinking in the vec4 backend.

This manages to make some extra vec operations that would turn into movs
go away.

brw shader-db:
total instructions in shared programs: 3895037 -> 3893221 (-0.05%)
total cycles in shared programs: 113832759 -> 113792154 (-0.04%)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6050>
src/intel/compiler/brw_nir.c