From be95198de58b87cffff20de1ecd73635c28ff95e Mon Sep 17 00:00:00 2001 From: Alyssa Rosenzweig Date: Wed, 21 Jul 2021 10:55:47 -0400 Subject: [PATCH] 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 Part-of: --- src/panfrost/bifrost/bifrost_compile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panfrost/bifrost/bifrost_compile.c b/src/panfrost/bifrost/bifrost_compile.c index 231490ac0c5..b5ac6e84044 100644 --- a/src/panfrost/bifrost/bifrost_compile.c +++ b/src/panfrost/bifrost/bifrost_compile.c @@ -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. */