From cc5889707861a7f94cb3dbba61a224d45742d3d2 Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 11 Aug 2010 20:25:27 +0000 Subject: [PATCH] Early return in rewrite_commutative_reductions_out_of_ssa when flag_associative_math is not set. 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. From-SVN: r163125 --- gcc/ChangeLog | 5 +++++ gcc/ChangeLog.graphite | 5 +++++ gcc/graphite-sese-to-poly.c | 3 +++ 3 files changed, 13 insertions(+) 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);