[Mesa-dev] [PATCH 3/3] anv/i965: make use of nir_move_out_const_to_consumer()

Timothy Arceri tarceri at itsqueeze.com
Wed Nov 7 04:25:03 UTC 2018


shader-db results for SLK:

On 7/11/18 3:20 pm, Timothy Arceri wrote:
> total instructions in shared programs: 13106498 -> 13091573 (-0.11%)
> instructions in affected programs: 1186244 -> 1171319 (-1.26%)
> helped: 6186
> HURT: 0
> 
> total cycles in shared programs: 332062633 -> 331961653 (-0.03%)
> cycles in affected programs: 8537165 -> 8436185 (-1.18%)
> helped: 5371
> HURT: 862
> 
> LOST:   6
> GAINED: 14
> ---
>   src/intel/compiler/brw_nir.c | 3 +++
>   1 file changed, 3 insertions(+)
> 
> diff --git a/src/intel/compiler/brw_nir.c b/src/intel/compiler/brw_nir.c
> index cf5a4a96d67..b3af16bea22 100644
> --- a/src/intel/compiler/brw_nir.c
> +++ b/src/intel/compiler/brw_nir.c
> @@ -740,6 +740,9 @@ brw_nir_link_shaders(const struct brw_compiler *compiler,
>         *consumer = brw_nir_optimize(*consumer, compiler, c_is_scalar, false);
>      }
>   
> +   if (nir_move_out_const_to_consumer(*producer, *consumer))
> +      *consumer = brw_nir_optimize(*consumer, compiler, c_is_scalar, false);
> +
>      NIR_PASS_V(*producer, nir_remove_dead_variables, nir_var_shader_out);
>      NIR_PASS_V(*consumer, nir_remove_dead_variables, nir_var_shader_in);
>   
> 


More information about the mesa-dev mailing list