diff mbox

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

Message ID 1282069224-21268-4-git-send-email-sebpop@gmail.com
State New
Headers show

Commit Message

Sebastian Pop Aug. 17, 2010, 6:20 p.m. UTC
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 mbox

Patch

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)