v3d: Handle dynamically uniform IF statements with uniform control flow.
authorEric Anholt <eric@anholt.net>
Mon, 31 Dec 2018 20:18:34 +0000 (12:18 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 2 Jan 2019 22:12:29 +0000 (14:12 -0800)
commit080506057310ee3239ae8befe3679b9c2f752607
tree9bb5b8fd18896cfa36e8a1ab8ffa1bfa84469d2b
parent5e9ee6e8419af5089809d4116022af2cb8ca9237
v3d: Handle dynamically uniform IF statements with uniform control flow.

Loops will be trickier, since we need some analysis to figure out if the
breaks/continues inside are uniform.  Until we get that in NIR, this gets
us some quick wins.

total instructions in shared programs: 6192844 -> 6174162 (-0.30%)
instructions in affected programs: 487781 -> 469099 (-3.83%)
src/broadcom/compiler/nir_to_vir.c