This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Enable reductions without fassociative-math in graphite
- From: Tom de Vries <Tom_deVries at mentor dot com>
- To: Richard Biener <rguenther at suse dot de>
- Cc: "gcc-patches at gnu dot org" <gcc-patches at gnu dot org>, Sebastian Pop <sebpop at gmail dot com>
- Date: Wed, 22 Jul 2015 18:03:57 +0200
- Subject: [PATCH] Enable reductions without fassociative-math in graphite
- Authentication-results: sourceware.org; auth=none
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
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