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/compiler/nir/nir.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/compiler/nir/nir.h') diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index c41b0dc9313..44a1d0887e3 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -2644,6 +2644,8 @@ bool nir_opt_gcm(nir_shader *shader, bool value_number); bool nir_opt_if(nir_shader *shader); +bool nir_opt_intrinsics(nir_shader *shader); + bool nir_opt_loop_unroll(nir_shader *shader, nir_variable_mode indirect_mask); bool nir_opt_move_comparisons(nir_shader *shader); -- cgit v1.2.3