diff mbox

Enable reductions without fassociative-math in graphite

Message ID 55AFBEED.5030402@mentor.com
State New
Headers show

Commit Message

Tom de Vries July 22, 2015, 4:03 p.m. UTC
Hi,

this patch allows non-float reductions to be detected by graphite, 
independent of whether fassociative-math (which only has effect for 
float operations) is set.

Currently bootstrapping and reg-testing on x86_64.

OK for trunk?

Thanks,
- Tom

Comments

Richard Biener July 23, 2015, 1:44 p.m. UTC | #1
On Wed, 22 Jul 2015, Tom de Vries wrote:

> Hi,
> 
> this patch allows non-float reductions to be detected by graphite, independent
> of whether fassociative-math (which only has effect for float operations) is
> set.
> 
> Currently bootstrapping and reg-testing on x86_64.
> 
> OK for trunk?

Ok

> Thanks,
> - Tom
>
diff mbox

Patch

Enable reductions without fassociative-math in graphite

2015-07-21  Tom de Vries  <tom@codesourcery.com>

	* graphite-sese-to-poly.c (build_poly_scop): Always call
	rewrite_commutative_reductions_out_of_ssa.
---
 gcc/graphite-sese-to-poly.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/gcc/graphite-sese-to-poly.c b/gcc/graphite-sese-to-poly.c
index 68f7df1..28b9817 100644
--- a/gcc/graphite-sese-to-poly.c
+++ b/gcc/graphite-sese-to-poly.c
@@ -3155,8 +3155,7 @@  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);
+  rewrite_commutative_reductions_out_of_ssa (scop);
 
   build_sese_loop_nests (region);
   /* Record all conditions in REGION.  */
-- 
1.9.1