public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] RFC: Enable graphite at -O3 -fprofile_use
@ 2015-11-09  5:16 hiraditya
  0 siblings, 0 replies; 5+ messages in thread
From: hiraditya @ 2015-11-09  5:16 UTC (permalink / raw)
  To: gcc-patches
  Cc: tobias, sebpop, richard.guenther, aditya.k7, hiraditya, hiraditya

Since graphite will not modify the CFG when it does not do any optimization,
we would like to propose that graphite's polyhedral optimizer be enabled at
-O3 -fprofile-use where, compile time is of lesser concern.

gcc/ChangeLog:

2015-11-08  Aditya Kumar  <aditya.k7@samsung.com>
            Sebastian Pop  <s.pop@samsung.com>

        * graphite.c (gate_graphite_transforms): Enable graphite on -O3 -fprofile-use.
---
 gcc/graphite.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gcc/graphite.c b/gcc/graphite.c
index 5316bc4..49595ac 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -383,6 +383,9 @@ gate_graphite_transforms (void)
       || flag_loop_optimize_isl)
     flag_graphite = 1;
 
+  if (optimize >= 3 && flag_profile_use)
+    flag_loop_optimize_isl = 1;
+
   return flag_graphite != 0;
 }
 
-- 
2.1.4

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH] RFC: Enable graphite at -O3 -fprofile_use
@ 2015-11-13 10:30 Richard Biener
  0 siblings, 0 replies; 5+ messages in thread
From: Richard Biener @ 2015-11-13 10:30 UTC (permalink / raw)
  To: gcc-patches; +Cc: hiraditya, sebpop


Sorry for not replying earlier, it seems gmail eats messages sometimes
(thus also not replying to the mail directly).

You write

> Since graphite will not modify the CFG when it does not do any 
optimization,
> we would like to propose that graphite's polyhedral optimizer be enabled 
at
> -O3 -fprofile-use where, compile time is of lesser concern.

I think this is generally a good idea.  Note that for this we should
raise the minimum supported ISL version to one supporting the
timeout thingy and of course we need to make ISL a required
prerequesite for building GCC.  Which means making sure ISL builds
on all our primary and secondary host platforms (I think it does).

I'd also like to see runtime / compile-time (and code-size?) figures
for, say, SPEC CPU 2006 (with FDO of course).  Maybe also some
information on whether GRAPHITE did anything for any benchmark
in that suite (I notice GRAPHITE doesn't use the -fopt-info
machinery, aka dump_printf and friends with MSG_OPTIMIZED_LOCATIONS
or MSG_MISSED_OPTIMIZATIONS).

So please work on the above list of items.

Thanks,
Richard.

^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: [PATCH] RFC: Enable graphite at -O3 -fprofile_use
@ 2015-11-13 11:19 VandeVondele  Joost
  2015-11-13 11:32 ` Richard Biener
  0 siblings, 1 reply; 5+ messages in thread
From: VandeVondele  Joost @ 2015-11-13 11:19 UTC (permalink / raw)
  To: rguenther; +Cc: hiraditya, sebpop, gcc-patches

I'm all in favour of requiring isl and enabling graphite by default, but would suggest to enable it with -Ofast instead. 

One reason is that certainly extracting testcases from a PGO build is more difficult, and initially there will certainly be miscompiles with graphite (CP2K is right now). 

Furthermore, unless graphite is particularly effective with PGO (does it use average loop trip counts already?), I don't see a particular connection.

Joost

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

end of thread, other threads:[~2015-11-13 13:25 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-09  5:16 [PATCH] RFC: Enable graphite at -O3 -fprofile_use hiraditya
2015-11-13 10:30 Richard Biener
2015-11-13 11:19 VandeVondele  Joost
2015-11-13 11:32 ` Richard Biener
2015-11-13 13:25   ` aditya kumar

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).