aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgcleanup.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2018-01-10 11:54:20 +0100
committerMartin Liska <marxin@gcc.gnu.org>2018-01-10 10:54:20 +0000
commit3ff0dc17a41ca4a8c673c67d0053e85a6521c739 (patch)
treef23e1eb29735ba98c89f93421a9b7ee92fab31aa /gcc/cfgcleanup.c
parent2072a319569067b9b99154e8d1bbec894034652f (diff)
downloadgcc-3ff0dc17a41ca4a8c673c67d0053e85a6521c739.zip
gcc-3ff0dc17a41ca4a8c673c67d0053e85a6521c739.tar.gz
gcc-3ff0dc17a41ca4a8c673c67d0053e85a6521c739.tar.bz2
Clean up partitioning in try_optimize_cfg (PR bootstrap/82831).
2018-01-10 Martin Liska <mliska@suse.cz> PR bootstrap/82831 * basic-block.h (CLEANUP_NO_PARTITIONING): New define. * bb-reorder.c (pass_reorder_blocks::execute): Do not clean up partitioning. * cfgcleanup.c (try_optimize_cfg): Fix up partitioning if CLEANUP_NO_PARTITIONING is not set. From-SVN: r256422
Diffstat (limited to 'gcc/cfgcleanup.c')
-rw-r--r--gcc/cfgcleanup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/cfgcleanup.c b/gcc/cfgcleanup.c
index 43d1876..eebbe8f 100644
--- a/gcc/cfgcleanup.c
+++ b/gcc/cfgcleanup.c
@@ -3012,7 +3012,8 @@ try_optimize_cfg (int mode)
to detect and fix during edge forwarding, and in some cases
is only visible after newly unreachable blocks are deleted,
which will be done in fixup_partitions. */
- fixup_partitions ();
+ if ((mode & CLEANUP_NO_PARTITIONING) == 0)
+ fixup_partitions ();
checking_verify_flow_info ();
}