Mesa (master): i965: Move nir_lower_locals_to_regs a bit later.

Timothy Arceri tarceri at kemper.freedesktop.org
Wed Jan 11 22:47:43 UTC 2017


Module: Mesa
Branch: master
Commit: b5e682a1efa0a929574e739807ac2b046e004561
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b5e682a1efa0a929574e739807ac2b046e004561

Author: Kenneth Graunke <kenneth at whitecape.org>
Date:   Tue Aug  9 18:02:46 2016 -0700

i965: Move nir_lower_locals_to_regs a bit later.

I'm going to add a boolean scheduling pass that I want run late, but
after copy propagation and dead code elimination.  Yet, I don't want
to have to think about registers.  So, move the register conversion
a little later.

No impact on shader-db.  Suggested by Jason Ekstrand.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Timothy Arceri <timothy.arceri at collabora.com>

---

 src/mesa/drivers/dri/i965/brw_nir.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_nir.c b/src/mesa/drivers/dri/i965/brw_nir.c
index 4744498..d011190 100644
--- a/src/mesa/drivers/dri/i965/brw_nir.c
+++ b/src/mesa/drivers/dri/i965/brw_nir.c
@@ -619,12 +619,12 @@ brw_postprocess_nir(nir_shader *nir, const struct brw_compiler *compiler,
 
    OPT(nir_opt_algebraic_late);
 
-   OPT(nir_lower_locals_to_regs);
-
    OPT_V(nir_lower_to_source_mods);
    OPT(nir_copy_prop);
    OPT(nir_opt_dce);
 
+   OPT(nir_lower_locals_to_regs);
+
    if (unlikely(debug_enabled)) {
       /* Re-index SSA defs so we print more sensible numbers. */
       nir_foreach_function(function, nir) {




More information about the mesa-commit mailing list