OSDN Git Service

Early return in rewrite_commutative_reductions_out_of_ssa when flag_associative_math...
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Aug 2010 20:25:27 +0000 (20:25 +0000)
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 11 Aug 2010 20:25:27 +0000 (20:25 +0000)
2010-06-23  Sebastian Pop  <sebastian.pop@amd.com>

* graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
Early return in when flag_associative_math is not set.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@163125 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 3e634e7..71caf5b 100644 (file)
@@ -1,5 +1,10 @@
 2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
 
+       * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
+       Early return in when flag_associative_math is not set.
+
+2010-08-02  Sebastian Pop  <sebastian.pop@amd.com>
+
        * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
        of SSA copies on edges except for loop->latch.
 
index abeda2a..53c7344 100644 (file)
@@ -1,5 +1,10 @@
 2010-06-23  Sebastian Pop  <sebastian.pop@amd.com>
 
+       * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
+       Early return in when flag_associative_math is not set.
+
+2010-06-23  Sebastian Pop  <sebastian.pop@amd.com>
+
        * gcc.dg/graphite/run-id-2.c: Call abort.
 
 2010-06-23  Sebastian Pop  <sebastian.pop@amd.com>
index 75879ed..9aa4070 100644 (file)
@@ -2829,6 +2829,9 @@ rewrite_commutative_reductions_out_of_ssa (sese region, sbitmap reductions)
   loop_iterator li;
   loop_p loop;
 
+  if (!flag_associative_math)
+    return;
+
   FOR_EACH_LOOP (li, loop, 0)
     if (loop_in_sese_p (loop, region))
       rewrite_commutative_reductions_out_of_ssa_loop (loop, reductions);