public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107699] [12/13 Regression] False positive -Warray-bounds, non-existent offset reported by GCC Date: Thu, 08 Dec 2022 10:58:56 +0000 [thread overview] Message-ID: <bug-107699-4-U6E0cunYQF@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-107699-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107699 --- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>: https://gcc.gnu.org/g:892e8c520be37d0a0f14e2ae375103c5303ed549 commit r13-4555-g892e8c520be37d0a0f14e2ae375103c5303ed549 Author: Richard Biener <rguenther@suse.de> Date: Thu Dec 8 09:07:36 2022 +0100 tree-optimization/107699 - missed &data._M_elems + _1 != &data._M_elems folding The following addresses a missed folding noticed in PR107699 that can be fixed amending the existing &x + a != &x + b pattern to also handle the case of only one side having a pointer plus. I'm moving the patterns next to related simpifications showing there'd be an existing pattern matching this if it were not gated with an explicit single_use constraint. Note the new pattern also handles &x.a + a != &x.b, but this hints at some unification / generalization opportunities here. PR tree-optimization/107699 * match.pd (&a !=/== &a.b + c -> (&a - &a.b) !=/== c): New pattern variant. * gcc.dg/tree-ssa/pr107699.c: New testcase.
next prev parent reply other threads:[~2022-12-08 10:58 UTC|newest] Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-11-15 14:10 [Bug c++/107699] New: " carlosgalvezp at gmail dot com 2022-11-16 13:34 ` [Bug tree-optimization/107699] " rguenth at gcc dot gnu.org 2022-11-16 13:34 ` [Bug tree-optimization/107699] 12/13 Regression] " rguenth at gcc dot gnu.org 2022-11-16 14:54 ` [Bug tree-optimization/107699] [12/13 " carlosgalvezp at gmail dot com 2022-11-23 3:00 ` hp at gcc dot gnu.org 2022-11-29 13:22 ` rguenth at gcc dot gnu.org 2022-11-29 13:41 ` carlosgalvezp at gmail dot com 2022-11-29 13:46 ` carlosgalvezp at gmail dot com 2022-11-29 17:54 ` rguenther at suse dot de 2022-11-29 17:58 ` carlosgalvezp at gmail dot com 2022-12-08 10:58 ` cvs-commit at gcc dot gnu.org [this message] 2022-12-08 10:59 ` rguenth at gcc dot gnu.org 2023-02-16 10:37 ` carlosgalvezp at gmail dot com 2023-05-08 12:26 ` [Bug tree-optimization/107699] [12/13/14 " rguenth at gcc dot gnu.org 2023-12-15 13:57 ` 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-107699-4-U6E0cunYQF@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).