Mesa (master): glsl/opt_cpe: Reenable opt_copy_propagation_elements. cpp pass.

Eric Anholt anholt at kemper.freedesktop.org
Wed Apr 13 10:53:41 PDT 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Sat Apr  2 20:19:20 2011 -0700

glsl/opt_cpe: Reenable opt_copy_propagation_elements.cpp pass.

---

 src/glsl/glsl_parser_extras.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp
index e8881e4..5bb3a6f 100644
--- a/src/glsl/glsl_parser_extras.cpp
+++ b/src/glsl/glsl_parser_extras.cpp
@@ -768,7 +768,7 @@ do_common_optimization(exec_list *ir, bool linked, unsigned max_unroll_iteration
    progress = do_if_simplification(ir) || progress;
    progress = do_discard_simplification(ir) || progress;
    progress = do_copy_propagation(ir) || progress;
-   /*progress = do_copy_propagation_elements(ir) || progress;*/
+   progress = do_copy_propagation_elements(ir) || progress;
    if (linked)
       progress = do_dead_code(ir) || progress;
    else



More information about the mesa-commit mailing list