From d4c9d6a3b2cef577454d9c911fc96d5f678d9955 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 22 Jun 2017 12:13:25 -0700 Subject: nir: Add pass to optimize intrinsics Specifically, constant fold intrinsics from ARB_shader_group_vote, but I suspect it'll be useful for other things in the future. Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_nir.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/intel') diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c index 49d3cf36564..cede77fbc88 100644 --- a/src/intel/compiler/brw_nir.c +++ b/src/intel/compiler/brw_nir.c @@ -553,6 +553,7 @@ nir_optimize(nir_shader *nir, const struct brw_compiler *compiler, OPT(nir_opt_dce); OPT(nir_opt_cse); OPT(nir_opt_peephole_select, 0); + OPT(nir_opt_intrinsics); OPT(nir_opt_algebraic); OPT(nir_opt_constant_folding); OPT(nir_opt_dead_cf); -- cgit v1.2.3