public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "hubicka at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/100314] missed optimization for dead code elimination at -O3 (vs. -O1) (inlining differences) Date: Tue, 11 Jan 2022 10:40:34 +0000 [thread overview] Message-ID: <bug-100314-4-BcSDobNDIE@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-100314-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100314 --- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> --- However i is also dead at dse time: void d (int m) { int k; int * l[5]; int * * * i[1]; int * * h[30]; int b.1_11; int _12; int g.2_13; <bb 2> : MEM <char[232]> [(int * *[30] *)&h + 8B] = {}; h[0] = &c; i[0] = &h[3]; if (m_6(D) != 0) goto <bb 3>; [INV] else goto <bb 4>; [INV] <bb 3> : foo (); <bb 4> : l[0] = &k; l[1] = &k; l[2] = &k; l[3] = &k; l[4] = &k; goto <bb 6>; [100.00%] <bb 5> : j = &l[0]; b.1_11 = b; _12 = b.1_11 + 1; b = _12; <bb 6> : g.2_13 = g; if (g.2_13 != 0) goto <bb 5>; [89.00%] else goto <bb 7>; [11.00%] <bb 7> : k ={v} {CLOBBER}; l ={v} {CLOBBER}; h ={v} {CLOBBER}; i ={v} {CLOBBER}; return; } Not sure why DSE is not optimizing this out.
next prev parent reply other threads:[~2022-01-11 10:40 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-28 10:17 [Bug tree-optimization/100314] New: missed optimization for dead code elimination at -O3 (vs. -O1) zhendong.su at inf dot ethz.ch 2021-09-25 10:05 ` [Bug ipa/100314] missed optimization for dead code elimination at -O3 (vs. -O1) (inlining differences) pinskia at gcc dot gnu.org 2022-01-11 9:53 ` rguenth at gcc dot gnu.org 2022-01-11 10:36 ` hubicka at gcc dot gnu.org 2022-01-11 10:40 ` hubicka at gcc dot gnu.org [this message] 2023-08-18 2:32 ` [Bug ipa/100314] missed optimization for dead code elimination at -O3 (vs. -O1) (inlining differences due to missed dse) pinskia at gcc dot gnu.org 2024-05-15 16:44 ` rguenth at gcc dot gnu.org 2024-05-16 9:04 ` cvs-commit at gcc dot gnu.org 2024-05-16 9:05 ` 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-100314-4-BcSDobNDIE@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).