vc4: Also enable phi elimination.
authorEric Anholt <eric@anholt.net>
Wed, 6 Jul 2016 22:21:53 +0000 (15:21 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Jul 2016 22:47:25 +0000 (15:47 -0700)
commit6858f059246b2cf6b969b050154dcb7307a03833
treece67e9ee67849a3ae7039756078784a452185112
parente8959ba7afbda7a23805072efc15c6f11449103e
vc4: Also enable phi elimination.

This avoids a bunch of code gen regressions when enabling loops in vc4.

Prior to that, the GLSL that would have generated these optimizable phi
nodes was being lowered to csels between either (undef, a) or (a, a), and
those were being dealt with by nir_opt_undef and nir_opt_algebraic.
src/gallium/drivers/vc4/vc4_program.c