diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3e634e76a61..71caf5be137 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-02 Sebastian Pop + + * 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 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite index abeda2a42e9..53c7344f55b 100644 --- a/gcc/ChangeLog.graphite +++ b/gcc/ChangeLog.graphite @@ -1,3 +1,8 @@ +2010-06-23 Sebastian Pop + + * 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 * gcc.dg/graphite/run-id-2.c: Call abort. diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c index 75879ed7e0c..9aa4070b464 100644 --- a/gcc/graphite-sese-to-poly.c +++ b/gcc/graphite-sese-to-poly.c @@ -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);