vc4: Optimize out redundant SF updates.
authorEric Anholt <eric@anholt.net>
Sat, 4 Jun 2016 00:09:14 +0000 (17:09 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 4 Jul 2016 23:33:22 +0000 (16:33 -0700)
commit8f2af4763a60c5ea5f64829321ae97bbfa51a4ce
tree216912fdc1cffcd6ac62bfd7b80a69389d7ed9b5
parent200b4e4bd5e87fea91193e3d1976b9cf0eabf8ba
vc4: Optimize out redundant SF updates.

Tiny change on shader-db currently, but it will be important when we start
emitting a lot of SFs from the same variable as part of control flow
support.

total instructions in shared programs: 89463 -> 89430 (-0.04%)
instructions in affected programs:     1522 -> 1489 (-2.17%)
total estimated cycles in shared programs: 250060 -> 250015 (-0.02%)
estimated cycles in affected programs:     8568 -> 8523 (-0.53%)
src/gallium/drivers/vc4/vc4_opt_peephole_sf.c
src/gallium/drivers/vc4/vc4_qir.c