vc4: Convert vc4_opt_peephole_sf to work with control flow.
authorEric Anholt <eric@anholt.net>
Fri, 8 Jul 2016 23:59:15 +0000 (16:59 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Jul 2016 22:47:26 +0000 (15:47 -0700)
commit0c923e6c33059b3ba0c29cbc920c2918e55f54db
tree926c66233a221f0f7d24987d0d2e234c2145fdb3
parent6c1f834a237540c344fa794d60501a69bf066fb5
vc4: Convert vc4_opt_peephole_sf to work with control flow.

We need to apply the peephole pass to each of the blocks in the program.
We don't do dataflow analysis for SF across blocks, but we also don't
generate code that would need us to do so.
src/gallium/drivers/vc4/vc4_opt_peephole_sf.c