diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-25 06:48:20 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-25 06:48:20 +0000 |
commit | c5409e1ff746dafe224dedd6d20e649c370f0617 (patch) | |
tree | 86ced127ef6eae84c341b682819a67991ad541a7 | |
parent | 65d2f4e2ab2334f80ced09c4718279cdba0ea6f4 (diff) | |
download | gcc-c5409e1ff746dafe224dedd6d20e649c370f0617.tar.gz |
Move rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
2011-01-25 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (build_poly_scop): Move
rewrite_commutative_reductions_out_of_ssa before
find_scop_parameters.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169217 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ChangeLog.graphite | 6 | ||||
-rw-r--r-- | gcc/graphite-sese-to-poly.c | 5 |
3 files changed, 15 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4891065bdb2..755cb45f9d3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2011-01-25 Sebastian Pop <sebastian.pop@amd.com> + * graphite-sese-to-poly.c (build_poly_scop): Move + rewrite_commutative_reductions_out_of_ssa before + find_scop_parameters. + +2011-01-25 Sebastian Pop <sebastian.pop@amd.com> + * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow VAR_DECL, PARM_DECL, and RESULT_DECL. diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index 3b81049b05e..c61136894ce 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,9 @@ +2011-01-19 Sebastian Pop <sebastian.pop@amd.com> + + * graphite-sese-to-poly.c (build_poly_scop): Move + rewrite_commutative_reductions_out_of_ssa before + find_scop_parameters. + 2011-01-18 Sebastian Pop <sebastian.pop@amd.com> PR tree-optimization/46970 diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 35a231655f1..3f419c8bc5f 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -3159,6 +3159,9 @@ build_poly_scop (scop_p scop) if (!scop_ivs_can_be_represented (scop)) return; + if (flag_associative_math) + rewrite_commutative_reductions_out_of_ssa (scop); + build_sese_loop_nests (region); build_sese_conditions (region); find_scop_parameters (scop); @@ -3175,8 +3178,6 @@ build_poly_scop (scop_p scop) representation to the polyhedral representation to avoid scev analysis failures. That means that these functions will insert new data references that they create in the right place. */ - if (flag_associative_math) - rewrite_commutative_reductions_out_of_ssa (scop); rewrite_reductions_out_of_ssa (scop); rewrite_cross_bb_scalar_deps_out_of_ssa (scop); |