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...@samsung.com>
            Sebastian Pop  <s....@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

Reply via email to