Mesa (master): i965/nir: Make use of nir_opt_undef
Matt Turner
mattst88 at kemper.freedesktop.org
Fri Aug 28 06:30:41 UTC 2015
Module: Mesa
Branch: master
Commit: 86c57ebe0ed1acc98545746058862db7429412da
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=86c57ebe0ed1acc98545746058862db7429412da
Author: Boyan Ding <boyan.j.ding at gmail.com>
Date: Fri Aug 21 21:42:45 2015 +0800
i965/nir: Make use of nir_opt_undef
Shader-db result on Ivy Bridge:
total instructions in shared programs: 145484 -> 145445 (-0.03%)
instructions in affected programs: 225 -> 186 (-17.33%)
helped: 5
HURT: 0
Reviewed-by: Matt Turner <mattst88 at gmail.com>
Reviewed-by: Thomas Helland <thomashelland90 at gmail.com>
Signed-off-by: Boyan Ding <boyan.j.ding at gmail.com>
---
src/mesa/drivers/dri/i965/brw_nir.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 8c6d28a..247b223 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -63,6 +63,8 @@ nir_optimize(nir_shader *nir, bool is_scalar)
nir_validate_shader(nir);
progress |= nir_opt_remove_phis(nir);
nir_validate_shader(nir);
+ progress |= nir_opt_undef(nir);
+ nir_validate_shader(nir);
} while (progress);
}
More information about the mesa-commit
mailing list