diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2007-07-12 12:24:19 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-07-12 10:24:19 +0000 |
commit | 44f51d597ed4102d6da3bd4cf631c5031b21c975 (patch) | |
tree | 30155d89a5ba3b59e55b09c976b20f6e31fd9e5b /gcc/cfghooks.c | |
parent | 553b66ad1d40ff948dfe1215e38787c1799110ff (diff) | |
download | gcc-44f51d597ed4102d6da3bd4cf631c5031b21c975.tar.gz |
re PR rtl-optimization/32729 (Loop unrolling not performed with large constant loop bound)
PR rtl-optimization/32729
* cfghooks.c (can_duplicate_block_p): Do not forbid duplicating blocks
that fallthru to exit.
From-SVN: r126576
Diffstat (limited to 'gcc/cfghooks.c')
-rw-r--r-- | gcc/cfghooks.c | 8 |
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); } |