[Mesa-dev] [PATCH 2/2] i965/nir: use redundant phi optimization
Connor Abbott
cwabbott0 at gmail.com
Mon Feb 2 22:54:17 PST 2015
Signed-off-by: Connor Abbott <cwabbott0 at gmail.com>
---
src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
index de0d780..4305e14 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp
@@ -46,6 +46,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);
}
--
2.1.0
More information about the mesa-dev
mailing list