public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "jakub at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/109258] [13 Regression] go.test/test/fixedbugs/bug207.go ICEs Date: Thu, 23 Mar 2023 10:10:25 +0000 [thread overview] Message-ID: <bug-109258-4-mkwCNZgNrW@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-109258-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109258 Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs-bisection | --- Comment #4 from Jakub Jelinek <jakub at gcc dot gnu.org> --- One possible fix is 2023-03-23 Jakub Jelinek <jakub@redhat.com> PR middle-end/109258 * builtins.cc (inline_expand_builtin_bytecmp): Return NULL_RTX early if target == const0_rtx. --- gcc/builtins.cc.jj 2023-03-23 10:00:58.308100548 +0100 +++ gcc/builtins.cc 2023-03-23 11:05:38.308135309 +0100 @@ -7178,8 +7178,8 @@ inline_expand_builtin_bytecmp (tree exp, bool is_ncmp = (fcode == BUILT_IN_STRNCMP || fcode == BUILT_IN_MEMCMP); /* Do NOT apply this inlining expansion when optimizing for size or - optimization level below 2. */ - if (optimize < 2 || optimize_insn_for_size_p ()) + optimization level below 2 or if unused *cmp hasn't been DCEd. */ + if (optimize < 2 || optimize_insn_for_size_p () || target == const0_rtx) return NULL_RTX; gcc_checking_assert (fcode == BUILT_IN_STRCMP
next prev parent reply other threads:[~2023-03-23 10:10 UTC|newest] Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-03-23 5:52 [Bug middle-end/109258] New: " pinskia at gcc dot gnu.org 2023-03-23 5:52 ` [Bug middle-end/109258] " pinskia at gcc dot gnu.org 2023-03-23 9:01 ` rguenth at gcc dot gnu.org 2023-03-23 9:35 ` jakub at gcc dot gnu.org 2023-03-23 10:06 ` jakub at gcc dot gnu.org 2023-03-23 10:10 ` jakub at gcc dot gnu.org [this message] 2023-03-23 10:21 ` jakub at gcc dot gnu.org 2023-03-23 10:21 ` jakub at gcc dot gnu.org 2023-03-24 9:40 ` cvs-commit at gcc dot gnu.org 2023-03-24 12:33 ` jakub at gcc dot gnu.org 2023-03-24 22:02 ` cvs-commit 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-109258-4-mkwCNZgNrW@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).