This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 6/6] Move loop flattening and SLP vectorization at the end of loop transforms.


2010-10-20  Sebastian Pop  <sebastian.pop@amd.com>

	* passes.c (init_optimization_passes): Move pass_flatten_loops and
	pass_slp_vectorize at the end of the loop transforms.
---
 gcc/ChangeLog |    5 +++++
 gcc/passes.c  |    4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8907244..d1215cb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
 2010-10-20  Sebastian Pop  <sebastian.pop@amd.com>
 
+	* passes.c (init_optimization_passes): Move pass_flatten_loops and
+	pass_slp_vectorize at the end of the loop transforms.
+
+2010-10-20  Sebastian Pop  <sebastian.pop@amd.com>
+
 	* passes.c (init_optimization_passes): Do not call pass_if_conversion
 	after pass_flatten_loops.
 	* tree-flow.h (gate_tree_if_conversion): Declared.
diff --git a/gcc/passes.c b/gcc/passes.c
index ed81018..82d5c74 100644
--- a/gcc/passes.c
+++ b/gcc/passes.c
@@ -913,11 +913,11 @@ init_optimization_passes (void)
 	    }
           NEXT_PASS (pass_predcom);
 	  NEXT_PASS (pass_complete_unroll);
-	  NEXT_PASS (pass_flatten_loops);
-	  NEXT_PASS (pass_slp_vectorize);
 	  NEXT_PASS (pass_parallelize_loops);
 	  NEXT_PASS (pass_loop_prefetch);
 	  NEXT_PASS (pass_iv_optimize);
+	  NEXT_PASS (pass_flatten_loops);
+	  NEXT_PASS (pass_slp_vectorize);
 	  NEXT_PASS (pass_tree_loop_done);
 	}
       NEXT_PASS (pass_cse_reciprocals);
-- 
1.7.0.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]