This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 3/5] Disable graphite loop optimizations with fgraphite read.


2010-08-14  Riyadh Baghdadi <baghdadi.mr@gmail.com>

	* toplev.c (process_options): Disable graphite loop optimization
	options when -fgraphite-read flag is used.
---
 gcc/ChangeLog.graphite |    5 +++++
 gcc/toplev.c           |    9 +++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index ccc8b9c..78f6a1c 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,3 +1,8 @@
+2010-08-14  Riyadh Baghdadi <baghdadi.mr@gmail.com>
+
+	* toplev.c (process_options): Disable graphite loop optimization
+	options when -fgraphite-read flag is used.
+
 2010-08-17  Riyadh Baghdadi <baghdadi.mr@gmail.com>
 
 	* graphite-poly.c (init_graphite_out_file): New.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 4f3f7fc..1ff5299 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -1871,6 +1871,15 @@ process_options (void)
     sorry ("Graphite loop optimizations cannot be used");
 #endif
 
+  /* Disable graphite loop optimizations when -fgraphite-read is
+     used.  */
+  if (flag_graphite_read)
+    {
+      flag_loop_block = 0;
+      flag_loop_interchange = 0;
+      flag_loop_strip_mine = 0;
+    }
+
   /* Unrolling all loops implies that standard loop unrolling must also
      be done.  */
   if (flag_unroll_all_loops)
-- 
1.7.0.4


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]