From: Eric Botcazou Date: Sun, 22 May 2011 21:29:20 +0000 (+0000) Subject: cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=afe8b6ec9a0aac1c36550185752e65fc95f0288b;p=gcc.git cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK. * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK. (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges returns true. From-SVN: r174046 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 53b72b2ab19..6959dd4c78d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2011-05-22 Eric Botcazou + + * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK. + (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges + returns true. + 2011-05-22 Richard Sandiford * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT. diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index 179cd00ad0c..c36af89a137 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -599,9 +599,6 @@ try_forward_edges (int mode, basic_block b) + REG_BR_PROB_BASE / 2) / REG_BR_PROB_BASE); - if (!FORWARDER_BLOCK_P (b) && forwarder_block_p (b)) - b->flags |= BB_FORWARDER_BLOCK; - do { edge t; @@ -2693,7 +2690,10 @@ try_optimize_cfg (int mode) /* Simplify branch to branch. */ if (try_forward_edges (mode, b)) - changed_here = true; + { + update_forwarder_flag (b); + changed_here = true; + } /* Look for shared code between blocks. */ if ((mode & CLEANUP_CROSSJUMP)