From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CC1BB3858D3C; Fri, 12 Apr 2024 22:33:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CC1BB3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712961225; bh=2ENIhs7ncEpfGsXQcA92NHmylEepVSSK2Uz6X0N01lg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uT1/uM4cQJuTDFbcf3QPVGbKbaYp2LuBBrbx3adQoGplHgOfMRAk9Jfkb3edVIHlc SamHomxfvRneSIGrmZ3d03WjlyvfwkoE44N8Bp02XXtnu9+0qg53zoG1DLNSvCwWqn GG27kQPaLUtizOrxulK46nMKmhDyh4VDB/I7eoxc= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/114702] Missed optimization: fail to infer c - b != if a + b != c Date: Fri, 12 Apr 2024 22:33:45 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords everconfirmed cf_reconfirmed_on bug_severity bug_status blocked 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=3D114702 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization Ever confirmed|0 |1 Last reconfirmed| |2024-04-12 Severity|normal |enhancement Status|UNCONFIRMED |NEW Blocks| |85316 --- Comment #1 from Andrew Pinski --- Confirmed.=20 VRP does some of this but I am not sure if it can be expanded to be handle = more general value relations here Folding statement: if (_2 =3D=3D a_5(D)) Registering value_relation (_2 =3D=3D a_5(D)) on (3->4) Registering value_relation (_2 !=3D a_5(D)) on (3->5) Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D85316 [Bug 85316] [meta-bug] VRP range propagation missed cases=