summaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-25 05:01:06 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2009-11-25 05:01:06 +0000
commitef98ee108ad573e25d820f8708541a88d9aac853 (patch)
tree3e3a697c5c1fdec358aabbfa0eb52287fd0d4bc4 /gcc
parentb8ad26ccd1b0997e5c36bea7a9eec552bc7e71ff (diff)
downloadgcc-ef98ee108ad573e25d820f8708541a88d9aac853.tar.gz
2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
* graphite.c (graphite_initialize): Do not handle functions with more than 100 basic blocks. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154575 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog.graphite5
-rw-r--r--gcc/graphite.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gcc/ChangeLog.graphite b/gcc/ChangeLog.graphite
index 95068fe21bb..fa5ecbea2a7 100644
--- a/gcc/ChangeLog.graphite
+++ b/gcc/ChangeLog.graphite
@@ -1,5 +1,10 @@
2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
+ * graphite.c (graphite_initialize): Do not handle functions with
+ more than 100 basic blocks.
+
+2009-10-13 Sebastian Pop <sebastian.pop@amd.com>
+
* graphite-blocking.c (pbb_do_strip_mine): Use
PARAM_LOOP_BLOCK_TILE_SIZE.
diff --git a/gcc/graphite.c b/gcc/graphite.c
index 5e892635268..8cb61d2c36e 100644
--- a/gcc/graphite.c
+++ b/gcc/graphite.c
@@ -199,7 +199,10 @@ print_graphite_statistics (FILE* file, VEC (scop_p, heap) *scops)
static bool
graphite_initialize (void)
{
- if (number_of_loops () <= 1)
+ if (number_of_loops () <= 1
+ /* FIXME: This limit on the number of basic blocks of a function
+ should be removed when the SCOP detection is faster. */
+ || n_basic_blocks > 100)
{
if (dump_file && (dump_flags & TDF_DETAILS))
print_global_statistics (dump_file);