diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-26 21:11:57 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-01-26 21:11:57 +0000 |
commit | 2decfaa78e12eac1e66baf4acc85a87f1e4c356b (patch) | |
tree | 1dd95614331cdc84b7f99f4df9a472f576819869 /gcc/cfgcleanup.c | |
parent | 76db74b631685fa875dd5b6ae2dcda3a734212c2 (diff) | |
download | gcc-2decfaa78e12eac1e66baf4acc85a87f1e4c356b.tar.gz |
PR rtl-optimization/44469
* cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
after removing trivially dead basic blocks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@169304 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r-- | gcc/cfgcleanup.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c index bf6ca45990e..aaa0ea5d232 100644 --- a/gcc/cfgcleanup.c +++ b/gcc/cfgcleanup.c @@ -2341,8 +2341,7 @@ try_optimize_cfg (int mode) } } delete_basic_block (b); - if (!(mode & CLEANUP_CFGLAYOUT)) - changed = true; + changed = true; /* Avoid trying to remove ENTRY_BLOCK_PTR. */ b = (c == ENTRY_BLOCK_PTR ? c->next_bb : c); continue; |