aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2015-03-13 08:52:51 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2015-03-13 08:52:51 +0000
commit2aa26a5543cfd6fc2c03051d532f778da8318e9b (patch)
tree8fc2a2876c706f677325a184d1ccf5c45ac26b51 /gcc/tree-cfg.c
parent2a5671ee800de5ace6b9d78cd47de73a04d92fa8 (diff)
downloadgcc-2aa26a5543cfd6fc2c03051d532f778da8318e9b.zip
gcc-2aa26a5543cfd6fc2c03051d532f778da8318e9b.tar.gz
gcc-2aa26a5543cfd6fc2c03051d532f778da8318e9b.tar.bz2
re PR ipa/44563 (GCC uses a lot of RAM when compiling a large numbers of functions)
2015-03-12 Richard Biener <rguenther@suse.de> PR middle-end/44563 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards to avoid quadratic behavior with inline expansion splitting blocks. * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block with the successor if the predecessor will be merged with it. * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the entry block with its successor. From-SVN: r221410
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index ac12a58..0f5e428 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -1703,7 +1703,8 @@ gimple_can_merge_blocks_p (basic_block a, basic_block b)
if (!single_pred_p (b))
return false;
- if (b == EXIT_BLOCK_PTR_FOR_FN (cfun))
+ if (a == ENTRY_BLOCK_PTR_FOR_FN (cfun)
+ || b == EXIT_BLOCK_PTR_FOR_FN (cfun))
return false;
/* If A ends by a statement causing exceptions or something similar, we