diff options
author | Eric Anholt <[email protected]> | 2016-06-03 14:36:04 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-07-04 16:33:22 -0700 |
commit | 200b4e4bd5e87fea91193e3d1976b9cf0eabf8ba (patch) | |
tree | 0b962b15999588d421df9bf40a52857bc1cfc8a2 /src/gallium/drivers/vc4/vc4_qir.c | |
parent | aa76ba6f2fb0d6438b2b652d9fa466b6cf77fa31 (diff) |
vc4: Move SF removal to a separate peephole pass.
The DCE pass is going to change significantly to handle control flow,
while we don't really need to change it for the SF handling. We also need
to add some more SF peephole optimization for SF updates generated by
control flow support.
No change on shader-db.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_qir.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_qir.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/vc4/vc4_qir.c b/src/gallium/drivers/vc4/vc4_qir.c index 4cdc8a2baae..b36c0d934cc 100644 --- a/src/gallium/drivers/vc4/vc4_qir.c +++ b/src/gallium/drivers/vc4/vc4_qir.c @@ -540,6 +540,7 @@ qir_optimize(struct vc4_compile *c) OPTPASS(qir_opt_algebraic); OPTPASS(qir_opt_constant_folding); OPTPASS(qir_opt_copy_propagation); + OPTPASS(qir_opt_peephole_sf); OPTPASS(qir_opt_dead_code); OPTPASS(qir_opt_small_immediates); OPTPASS(qir_opt_vpm); |