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/108358] [13 Regression] Dead Code Elimination Regression at -Os since r13-3378-gf6c168f8c06047 Date: Mon, 27 Mar 2023 11:56:32 +0000 [thread overview] Message-ID: <bug-108358-4-eaje25CuIC@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-108358-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108358 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Both -O2 and -O1 can optimize away the call to foo. For -Os we end up with <bb 2> [local count: 118111600]: l = *.LC0; goto <bb 4>; [100.00%] <bb 3> [local count: 955630225]: bar31_ (); i.0_1 = i; _2 = i.0_1 + 1; i = _2; <bb 4> [local count: 1073741824]: i.1_3 = i; if (i.1_3 != 0) goto <bb 3>; [89.00%] else goto <bb 5>; [11.00%] <bb 5> [local count: 118111600]: j = l; m$h$b_18 = j.h.b; if (m$h$b_18 != 0) goto <bb 7>; [67.00%] else goto <bb 6>; [33.00%] <bb 6> [local count: 38976828]: foo (); but FREs looking through the j = l copy causes us to fail disambiguating against the cycle because of 'abort_on_visited' which I think is a bit overeager here.
next prev parent reply other threads:[~2023-03-27 11:56 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-01-10 13:03 [Bug tree-optimization/108358] New: Dead Code Elimination Regression at -Os (trunk vs. 12.2.0) yann at ywg dot ch 2023-01-10 14:47 ` [Bug tree-optimization/108358] [13 Regression] Dead Code Elimination Regression at -Os since r13-3378-gf6c168f8c06047 marxin at gcc dot gnu.org 2023-02-21 13:20 ` rguenth at gcc dot gnu.org 2023-03-27 11:56 ` rguenth at gcc dot gnu.org [this message] 2023-04-08 14:37 ` law at gcc dot gnu.org 2023-04-26 6:57 ` [Bug tree-optimization/108358] [13/14 " rguenth at gcc dot gnu.org 2023-07-27 9:25 ` rguenth at gcc dot gnu.org 2024-05-21 9:13 ` [Bug tree-optimization/108358] [13/14/15 " jakub 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-108358-4-eaje25CuIC@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).