public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "rguenth at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102880] [12 Regression] Dead Code Elimination Regression at -O3 Date: Fri, 29 Oct 2021 09:09:48 +0000 [thread overview] Message-ID: <bug-102880-4-SlbngATEgX@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-102880-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=102880 --- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> --- Created attachment 51699 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=51699&action=edit hack to make forwarders This is an overly simple attempt to make forwarders which works to restore the DCE. Given this it probably makes sense to at least move the early merge_phi pass after CD-DCE. That doesn't help this testcase since regular CFG cleanup performs the merging in our case. It's remove_forwarder_block will perform this. An alternative band-aid would be to resolve the regression by not running CFG cleanup after DSE (we're failing to run it when we empty a BB as well, something we might want to fix instead). Undoing PHI merging might be also a good thing to perform before going out of SSA. And merge_phi itself might do this as a 2nd step.
next prev parent reply other threads:[~2021-10-29 9:09 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-21 13:27 [Bug tree-optimization/102880] New: " theodort at inf dot ethz.ch 2021-10-21 13:46 ` [Bug tree-optimization/102880] " marxin at gcc dot gnu.org 2021-10-22 6:56 ` pinskia at gcc dot gnu.org 2021-10-22 6:57 ` rguenth at gcc dot gnu.org 2021-10-22 8:44 ` rguenth at gcc dot gnu.org 2021-10-29 9:09 ` rguenth at gcc dot gnu.org [this message] 2021-11-11 12:42 ` rguenth at gcc dot gnu.org 2021-11-16 10:31 ` cvs-commit at gcc dot gnu.org 2021-11-16 10:32 ` cvs-commit at gcc dot gnu.org 2021-11-16 10:33 ` rguenth at gcc dot gnu.org 2021-11-17 8:41 ` clyon at gcc dot gnu.org 2021-11-17 8:47 ` pinskia at gcc dot gnu.org 2021-11-18 8:56 ` rguenth at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-102880-4-SlbngATEgX@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).