public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "nok.raven at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/99305] New: [11 Regression] range condition simplification after inlining Date: Sat, 27 Feb 2021 14:23:57 +0000 [thread overview] Message-ID: <bug-99305-4@http.gcc.gnu.org/bugzilla/> (raw) https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99305 Bug ID: 99305 Summary: [11 Regression] range condition simplification after inlining Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: nok.raven at gmail dot com Target Milestone: --- bool foo(char c) { return c >= '0' && c <= '9'; } bool bar(char c) { return c != '\0' && foo(c); } bool foobar(char c) { return c != '\0' && c >= '0' && c <= '9'; } // GCC 10 bar(char): sub edi, 48 cmp dil, 9 setbe al ret // GCC 11 bar(char): xor eax, eax test dil, dil je .L3 sub edi, 48 cmp dil, 9 setbe al .L3: ret https://godbolt.org/z/z4r9cv
next reply other threads:[~2021-02-27 14:23 UTC|newest] Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-27 14:23 nok.raven at gmail dot com [this message] 2021-03-01 9:22 ` [Bug rtl-optimization/99305] " rguenth at gcc dot gnu.org 2021-03-09 12:02 ` [Bug tree-optimization/99305] " jakub at gcc dot gnu.org 2021-03-09 12:20 ` jakub at gcc dot gnu.org 2021-03-09 12:20 ` jakub at gcc dot gnu.org 2021-03-09 12:41 ` jakub at gcc dot gnu.org 2021-03-09 18:13 ` cvs-commit at gcc dot gnu.org 2021-03-09 18:14 ` jakub at gcc dot gnu.org 2021-03-10 16:41 ` 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-99305-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).