public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Enable reductions without fassociative-math in graphite
@ 2015-07-22 16:09 Tom de Vries
  2015-07-23 14:06 ` Richard Biener
  0 siblings, 1 reply; 2+ messages in thread
From: Tom de Vries @ 2015-07-22 16:09 UTC (permalink / raw)
  To: Richard Biener; +Cc: gcc-patches, Sebastian Pop

[-- Attachment #1: Type: text/plain, Size: 250 bytes --]

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

[-- Attachment #2: 0002-Enable-reductions-without-fassociative-math-in-graph.patch --]
[-- Type: text/x-patch, Size: 808 bytes --]

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Enable reductions without fassociative-math in graphite
  2015-07-22 16:09 [PATCH] Enable reductions without fassociative-math in graphite Tom de Vries
@ 2015-07-23 14:06 ` Richard Biener
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Biener @ 2015-07-23 14:06 UTC (permalink / raw)
  To: Tom de Vries; +Cc: gcc-patches, Sebastian Pop

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
> 

-- 
Richard Biener <rguenther@suse.de>
SUSE LINUX GmbH, GF: Felix Imendoerffer, Jane Smithard, Dilip Upmanyu, Graham Norton, HRB 21284 (AG Nuernberg)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-07-23 13:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-22 16:09 [PATCH] Enable reductions without fassociative-math in graphite Tom de Vries
2015-07-23 14:06 ` Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).