pan/bi: DCE after bifrost_nir_lower_algebraic_late

Needed for sat_signed to fuse, since we run modifier prop before backend
DCE.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12026>
This commit is contained in:
Alyssa Rosenzweig 2021-07-21 10:55:47 -04:00 committed by Marge Bot
parent e6fdbb85bc
commit be95198de5

View file

@ -3279,6 +3279,7 @@ bi_optimize_nir(nir_shader *nir, unsigned gpu_id, bool is_blend)
/* Prepass to simplify instruction selection */
NIR_PASS(progress, nir, bifrost_nir_lower_algebraic_late);
NIR_PASS(progress, nir, nir_opt_dce);
/* Backend scheduler is purely local, so do some global optimizations
* to reduce register pressure. */