[Mesa-dev] [PATCH 6/6] i965: Use the nir_move_comparisons pass.

Kenneth Graunke kenneth at whitecape.org
Wed Aug 10 02:30:19 UTC 2016


On Haswell (GL 3.3):

total instructions in shared programs: 6211427 -> 6210079 (-0.02%)
instructions in affected programs: 219356 -> 218008 (-0.61%)
helped: 567
HURT: 132

No spill/fill changes.

LOST:   0
GAINED: 4

On Broadwell (GL 4.4):

total instructions in shared programs: 11640218 -> 11632136 (-0.07%)
instructions in affected programs: 542528 -> 534446 (-1.49%)
helped: 1661
HURT: 143

total spills in shared programs: 2922 -> 2932 (0.34%)
spills in affected programs: 420 -> 430 (2.38%)
helped: 1
HURT: 1

total fills in shared programs: 4389 -> 4390 (0.02%)
fills in affected programs: 967 -> 968 (0.10%)
helped: 1
HURT: 1

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_nir.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index db2056d..b02c404 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -487,6 +487,7 @@ brw_postprocess_nir(nir_shader *nir,
    OPT_V(nir_lower_to_source_mods);
    OPT(nir_copy_prop);
    OPT(nir_opt_dce);
+   OPT(nir_opt_move_comparisons);
 
    OPT(nir_lower_locals_to_regs);
 
-- 
2.9.0



More information about the mesa-dev mailing list