[PATCH] Fix mode-switching (PR rtl-optimization/88593)
Richard Biener
rguenther@suse.de
Fri Feb 1 08:07:00 GMT 2019
On Thu, 31 Jan 2019, Jakub Jelinek wrote:
> Hi!
>
> I've successfully bootstrapped/regtested following patch from the PR on
> x86_64-linux and i686-linux. Will you commit it?
r268442.
> 2019-01-31 Richard Biener <rguenth@suse.de>
>
> PR rtl-optimization/88593
> * mode-switching.c (optimize_mode_switching): Free dominators before
> calling cleanup_cfg.
>
> --- gcc/mode-switching.c
> +++ 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;
>
> Jakub
More information about the Gcc-patches
mailing list