summaryrefslogtreecommitdiff
path: root/gcc/cfghooks.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-12 10:24:19 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-07-12 10:24:19 +0000
commit235835a0f3a5216518cc45e50836b3a268f06238 (patch)
tree30155d89a5ba3b59e55b09c976b20f6e31fd9e5b /gcc/cfghooks.c
parent3bf509f42d68c34b33d1e798ab3273c16bd738a8 (diff)
downloadgcc-235835a0f3a5216518cc45e50836b3a268f06238.tar.gz
PR rtl-optimization/32729
* cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks that fallthru to exit. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@126576 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfghooks.c')
-rw-r--r--gcc/cfghooks.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c
index 286625766e3..d436f011fac 100644
--- a/gcc/cfghooks.c
+++ b/gcc/cfghooks.c
@@ -838,8 +838,6 @@ tidy_fallthru_edges (void)
bool
can_duplicate_block_p (basic_block bb)
{
- edge e;
-
if (!cfg_hooks->can_duplicate_block_p)
internal_error ("%s does not support can_duplicate_block_p",
cfg_hooks->name);
@@ -847,12 +845,6 @@ can_duplicate_block_p (basic_block bb)
if (bb == EXIT_BLOCK_PTR || bb == ENTRY_BLOCK_PTR)
return false;
- /* Duplicating fallthru block to exit would require adding a jump
- and splitting the real last BB. */
- e = find_edge (bb, EXIT_BLOCK_PTR);
- if (e && (e->flags & EDGE_FALLTHRU))
- return false;
-
return cfg_hooks->can_duplicate_block_p (bb);
}