This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] RFC: Enable graphite at -O3 -fprofile_use
- From: hiraditya <hiraditya at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: tobias at grosser dot es, sebpop at gmail dot com, richard dot guenther at gmail dot com, aditya dot k7 at samsung dot com, hiraditya at msn dot com, hiraditya <hiraditya at gmail dot com>
- Date: Sun, 8 Nov 2015 23:16:10 -0600
- Subject: [PATCH] RFC: Enable graphite at -O3 -fprofile_use
- Authentication-results: sourceware.org; auth=none
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