From: rguenth Date: Fri, 1 Feb 2019 08:07:35 +0000 (+0000) Subject: 2019-02-01 Richard Biener X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0338fcd3be4f6ae7de4591656abc98e0643a3b94;p=thirdparty%2Fgcc.git 2019-02-01 Richard Biener PR rtl-optimization/88593 * mode-switching.c (optimize_mode_switching): Free dominators before calling cleanup_cfg. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268442 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d4ee2a2754c6..6b3437fe7b07 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2019-02-01 Richard Biener + + PR rtl-optimization/88593 + * mode-switching.c (optimize_mode_switching): Free dominators before + calling cleanup_cfg. + 2019-02-01 Bin Cheng PR tree-optimization/88932 diff --git a/gcc/mode-switching.c b/gcc/mode-switching.c index ef6f6e1984c5..2ff21a400813 100644 --- a/gcc/mode-switching.c +++ b/gcc/mode-switching.c @@ -856,7 +856,10 @@ optimize_mode_switching (void) commit_edge_insertions (); if (targetm.mode_switching.entry && targetm.mode_switching.exit) - cleanup_cfg (CLEANUP_NO_INSN_DEL); + { + free_dominance_info (CDI_DOMINATORS); + cleanup_cfg (CLEANUP_NO_INSN_DEL); + } else if (!need_commit && !emitted) return 0;