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