diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-22 21:29:20 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-22 21:29:20 +0000 |
commit | 50f4aeca79103896c7494270a96675fe69af2a97 (patch) | |
tree | 7cf5efa0619a6b03ef7ba8a5c4cfefeee6cc5b3f /gcc/cfgcleanup.c | |
parent | 6c0357500a9dd8a7c1bb2afcd912143062456fc3 (diff) | |
download | gcc-50f4aeca79103896c7494270a96675fe69af2a97.tar.gz |
* cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
(try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
returns true.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@174046 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) |