This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
RE: [PATCH] Fix PRE of TARGET_MEM_REF
- From: Revital1 Eres <ERES at il dot ibm dot com>
- To: Richard Guenther <rguenther at suse dot de>
- Cc: Michael Matz <matz at suse dot de>, gcc-patches at gcc dot gnu dot org
- Date: Tue, 26 May 2009 14:12:44 +0300
- Subject: RE: [PATCH] Fix PRE of TARGET_MEM_REF
Hello,
I wonder if there is any objection to also schedule predictive commoning
after the vectorizer, like in the following patch.
Scheduling predcom and PRE passes after the vectorizer could help to solve
PR39300, among others.
I am planning to do SPEC runs with this patch for testing.
Thanks,
Revital
Index: passes.c
===================================================================
--- passes.c (revision 147866)
+++ passes.c (working copy)
@@ -648,7 +648,6 @@ init_optimization_passes (void)
NEXT_PASS (pass_copy_prop);
NEXT_PASS (pass_dce_loop);
NEXT_PASS (pass_lim);
- NEXT_PASS (pass_predcom);
NEXT_PASS (pass_tree_unswitch);
NEXT_PASS (pass_scev_cprop);
NEXT_PASS (pass_empty_loop);
@@ -665,6 +664,7 @@ init_optimization_passes (void)
NEXT_PASS (pass_lower_vector_ssa);
NEXT_PASS (pass_dce_loop);
}
+ NEXT_PASS (pass_predcom);
NEXT_PASS (pass_complete_unroll);
NEXT_PASS (pass_slp_vectorize);
NEXT_PASS (pass_parallelize_loops);