public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "pinskia at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107622] Missing optimization of switch-statement Date: Thu, 10 Nov 2022 21:31:53 +0000 [thread overview] Message-ID: <bug-107622-4-Kt59rEHjOP@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107622-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107622 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- There is one part which GCC could optimize better that is the store. There might be another bug about that too. Note as I mentioned __builtin_unreachable is needed if truely the value coming inside g is outside of [0,3] range.
next prev parent reply other threads:[~2022-11-10 21:31 UTC|newest] Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-10 20:11 [Bug c++/107622] New: " klaus.doldinger64 at googlemail dot com 2022-11-10 20:20 ` [Bug c++/107622] " pinskia at gcc dot gnu.org 2022-11-10 21:31 ` pinskia at gcc dot gnu.org [this message] 2022-11-11 4:57 ` klaus.doldinger64 at googlemail dot com 2022-11-11 5:01 ` klaus.doldinger64 at googlemail dot com 2022-11-11 9:20 ` rguenth at gcc dot gnu.org 2022-11-11 10:16 ` klaus.doldinger64 at googlemail dot com 2022-11-11 15:07 ` glisse at gcc dot gnu.org 2022-11-21 10:32 ` marxin at gcc dot gnu.org 2022-12-02 14:17 ` marxin at gcc dot gnu.org 2022-12-02 14:45 ` jakub at gcc dot gnu.org 2023-04-16 21:55 ` klaus.doldinger64 at googlemail dot com 2023-04-17 6:50 ` klaus.doldinger64 at googlemail dot com
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-107622-4-Kt59rEHjOP@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).