From: Connor Abbott Date: Tue, 3 Feb 2015 06:50:49 +0000 (-0500) Subject: i965/nir: use redundant phi optimization X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab24e1270674192d2aeb4ba0cc39497edb3342f8;p=mesa.git i965/nir: use redundant phi optimization Reviewed-by: Jason Ekstrand Tested-by: Jason Ekstrand Signed-off-by: Connor Abbott --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 90980c78800..c3c268ca1b3 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -52,6 +52,8 @@ nir_optimize(nir_shader *nir) nir_validate_shader(nir); progress |= nir_opt_constant_folding(nir); nir_validate_shader(nir); + progress |= nir_opt_remove_phis(nir); + nir_validate_shader(nir); } while (progress); }