Mesa (master): pan/mdg: Enable nir_opt_algebraic_distribute_src_mods
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri May 1 18:51:01 UTC 2020
Module: Mesa
Branch: master
Commit: 211dee42d000ef27e573263f4c5d7a65b03dc5bf
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=211dee42d000ef27e573263f4c5d7a65b03dc5bf
Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date: Wed Apr 29 20:27:16 2020 -0400
pan/mdg: Enable nir_opt_algebraic_distribute_src_mods
Helps cleanup some issues otherwise missed by the new source mod
handling. (Noticed a double negative)
total instructions in shared programs: 3606 -> 3605 (-0.03%)
instructions in affected programs: 41 -> 40 (-2.44%)
helped: 1
HURT: 0
total bundles in shared programs: 1883 -> 1883 (0.00%)
bundles in affected programs: 0 -> 0
helped: 0
HURT: 0
total quadwords in shared programs: 3296 -> 3324 (0.85%)
quadwords in affected programs: 596 -> 624 (4.70%)
helped: 0
HURT: 2
total registers in shared programs: 337 -> 336 (-0.30%)
registers in affected programs: 6 -> 5 (-16.67%)
helped: 1
HURT: 0
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4852>
---
src/panfrost/midgard/midgard_compile.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/panfrost/midgard/midgard_compile.c b/src/panfrost/midgard/midgard_compile.c
index de2f0164bc3..58f0160b564 100644
--- a/src/panfrost/midgard/midgard_compile.c
+++ b/src/panfrost/midgard/midgard_compile.c
@@ -489,6 +489,7 @@ optimise_nir(nir_shader *nir, unsigned quirks)
} while (progress);
NIR_PASS(progress, nir, nir_opt_algebraic_late);
+ NIR_PASS(progress, nir, nir_opt_algebraic_distribute_src_mods);
/* We implement booleans as 32-bit 0/~0 */
NIR_PASS(progress, nir, nir_lower_bool_to_int32);
More information about the mesa-commit
mailing list