]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Move rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
authorSebastian Pop <sebastian.pop@amd.com>
Tue, 25 Jan 2011 06:48:20 +0000 (06:48 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Tue, 25 Jan 2011 06:48:20 +0000 (06:48 +0000)
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.

From-SVN: r169217

gcc/ChangeLog
gcc/ChangeLog.graphite
gcc/graphite-sese-to-poly.c

index 4891065bdb2437397a71d2e2b975062d515d54fe..755cb45f9d309904a607f8d133dc9538d07c1bfb 100644 (file)
@@ -1,3 +1,9 @@
+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
index 3b81049b05efb916da0264e104b297e4e171e490..c61136894ce44884b56ae24bc46ede123ff49893 100644 (file)
@@ -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
index 35a231655f12982f85389d7dee94d51c94be75be..3f419c8bc5f7c754527f6651a93337a25a0d891f 100644 (file)
@@ -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);