public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "zhendong.su at inf dot ethz.ch" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/100221] New: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2) Date: Thu, 22 Apr 2021 20:07:53 +0000 [thread overview] Message-ID: <bug-100221-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100221 Bug ID: 100221 Summary: missed optimization for dead code elimination at -O3 (vs. -O1, -Os, -O2) Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: zhendong.su at inf dot ethz.ch Target Milestone: --- [551] % gcctk -v Using built-in specs. COLLECT_GCC=gcctk COLLECT_LTO_WRAPPER=/local/suz-local/software/local/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: ../gcc-trunk/configure --disable-bootstrap --prefix=/local/suz-local/software/local/gcc-trunk --enable-languages=c,c++ --disable-werror --enable-multilib --with-system-zlib Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20210422 (experimental) [master revision 3cf04d1afa8:0e51007a40c:d42088e453042f4f8ba9190a7e29efd937ea2181] (GCC) [552] % [552] % gcctk -O1 -S -o O1.s small.c [553] % gcctk -O3 -S -o O3.s small.c [554] % [554] % wc O1.s O3.s 49 100 693 O1.s 73 151 1072 O3.s 122 251 1765 total [555] % [555] % grep foo O1.s [556] % grep foo O3.s call foo [557] % [557] % cat small.c extern void foo(void); int a, b; static int c; static void f() { while (a) for (; b; b--) ; } void i() { if (c) foo(); int *g = &c; { int **h[1] = {&g}; f(); } } int main() { i(); return 0; }
next reply other threads:[~2021-04-22 20:07 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-04-22 20:07 zhendong.su at inf dot ethz.ch [this message] 2021-09-25 10:54 ` [Bug tree-optimization/100221] " pinskia at gcc dot gnu.org 2021-12-16 4:35 ` pinskia at gcc dot gnu.org 2021-12-16 4:50 ` [Bug tree-optimization/100221] Takes two passes at DSE to remove some dead stores pinskia at gcc dot gnu.org 2021-12-16 4:50 ` pinskia at gcc dot gnu.org 2022-01-11 10:16 ` rguenth at gcc dot gnu.org 2022-01-11 11:04 ` rguenth at gcc dot gnu.org 2022-01-11 11:04 ` rguenth at gcc dot gnu.org 2022-01-11 11:05 ` rguenth at gcc dot gnu.org 2022-05-24 6:20 ` cvs-commit at gcc dot gnu.org 2022-05-24 6:21 ` 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-100221-4@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).