From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 170A23857719; Sun, 14 May 2023 21:25:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 170A23857719 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684099517; bh=fWGDZc8kx3cuwBvjBgxbAzF6WtzkBU0sZMVQcwzjI+0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=yhNxU5SvaU0vCVuc1UVyPkB5eiHXmYlYHkGOcVZh2d9800rtIRBiDdkYGwVcrpN2U vWsgve4i8PCh7YGyOuok67DAmMNsEx+QXxOWk5GOi19FYYCTUfkBOdrLvQvGLRIEgU CMBJ7nfkYJ28hL2wewuvt0y9/0d0ViXjdviAao3M= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94675] [10/11/12/13/14 regression] -Warray-bounds false positive with -O2 since r9-1948 Date: Sun, 14 May 2023 21:25:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 9.3.0 X-Bugzilla-Keywords: diagnostic, missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_reconfirmed_on Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94675 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2020-04-21 00:00:00 |2023-5-14 --- Comment #25 from Andrew Pinski --- Hmm, At VRP, we have: _6 =3D &c + _2; We know after that statement, _2 should have a range of [0,1] because we kn= ow the size of _6 is 1 byte. If we use that information afterwards, VRP should= be able to optimize the rest.=