summaryrefslogtreecommitdiff
path: root/gcc/tree-cfgcleanup.c
diff options
context:
space:
mode:
authordnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-02 19:12:52 +0000
committerdnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-08-02 19:12:52 +0000
commit9c5fbd8dbb8762c6d75c24f90d137fa18f926271 (patch)
tree29bd75e401554db6123985cab94e6dad1c66d757 /gcc/tree-cfgcleanup.c
parentf9d1ccffbde0a20dac5c70ce75d8e0bd140c67b0 (diff)
downloadgcc-9c5fbd8dbb8762c6d75c24f90d137fa18f926271.tar.gz
PR 23164
* tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the number of calls to cleanup_tree_cfg_1. testsuite/ChangeLog PR 23164 * g++.dg/tree-ssa/pr23164.C: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@102666 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfgcleanup.c')
-rw-r--r--gcc/tree-cfgcleanup.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/gcc/tree-cfgcleanup.c b/gcc/tree-cfgcleanup.c
index f2454b01119..f8bca03e9df 100644
--- a/gcc/tree-cfgcleanup.c
+++ b/gcc/tree-cfgcleanup.c
@@ -529,22 +529,12 @@ bool
cleanup_tree_cfg (void)
{
bool retval;
- int i;
timevar_push (TV_TREE_CLEANUP_CFG);
- for (retval = true, i = 0; i < 5 && retval; i++)
+ do
retval = cleanup_tree_cfg_1 ();
-
-#ifdef ENABLE_CHECKING
- if (retval)
- {
- gcc_assert (!cleanup_control_flow ());
- gcc_assert (!delete_unreachable_blocks ());
- if (optimize > 0)
- gcc_assert (!cleanup_forwarder_blocks ());
- }
-#endif
+ while (retval);
compact_blocks ();