diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-05-26 12:05:24 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-05-26 12:05:24 +0000 |
commit | 9be94227513a763dd33aede3f1479a1248c87a64 (patch) | |
tree | 2e0ce944007433764dbb17fe53d32320bebbcfb3 /gcc/cfgcleanup.c | |
parent | 60ba49d0197a473294fe3353f1fa9840e64d2a9c (diff) | |
download | gcc-9be94227513a763dd33aede3f1479a1248c87a64.zip gcc-9be94227513a763dd33aede3f1479a1248c87a64.tar.gz gcc-9be94227513a763dd33aede3f1479a1248c87a64.tar.bz2 |
cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks if CLEANUP_NO_INSN_DEL.
* cfgcleanup.c (try_optimize_cfg): Do not delete forwarder blocks
if CLEANUP_NO_INSN_DEL.
* cfgrtl.c (unique_locus_on_edge_between_p): New function extracted
from cfg_layout_merge_blocks.
(emit_nop_for_unique_locus_between): New function.
(rtl_merge_blocks): Invoke emit_nop_for_unique_locus_between.
(cfg_layout_merge_blocks): Likewise.
From-SVN: r187913
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index e94e7e3..6c56a04 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -2644,7 +2644,7 @@ try_optimize_cfg (int mode) } /* If we fall through an empty block, we can remove it. */ - if (!(mode & CLEANUP_CFGLAYOUT) + if (!(mode & (CLEANUP_CFGLAYOUT | CLEANUP_NO_INSN_DEL)) && single_pred_p (b) && (single_pred_edge (b)->flags & EDGE_FALLTHRU) && !LABEL_P (BB_HEAD (b)) |