intel/nir: Call alu_to_scalar one last time before out-of-ssa
authorJason Ekstrand <jason@jlekstrand.net>
Mon, 6 May 2019 17:25:29 +0000 (12:25 -0500)
committerJason Ekstrand <jason@jlekstrand.net>
Fri, 24 May 2019 13:38:11 +0000 (08:38 -0500)
commit4fde45956327ccc30ef1caba3855bb53c725dcb1
tree8f7660f7e24fb57025dcbe0fc74cda2009b01493
parentddd08e1888cfdf7a643b8fa1ce61f77bb66aa3eb
intel/nir: Call alu_to_scalar one last time before out-of-ssa

A few of our very late passes can end up generating vectors accidentally
so we need to get rid of them.  The only known case of this is the ffma
peephole which generates fneg and fabs as vectors.  Currently, they're
not a problem because they get turned into fmov which the back-end
compiler knows how to handle as a vector.  That's about to change.

Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
src/intel/compiler/brw_nir.c