From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B8DA03858C31; Tue, 19 Sep 2023 15:11:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B8DA03858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695136276; bh=9Q2nsF+Pb4H1kXERmtKHTDZLWiswJhmVeDNUJpItnGk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Uirl19rq403kdMcXbAkLHJQD61NqmUj/Hv1YR8+Y8rnL+/bmHcNh+cGkG6E/k3+46 MQmNiX4uwGEGpeeZtmNPboSOqezBWL8J5g/ZyLbMKGnntpikRqXjAsh/ciJPXwfNvE DsI8gRP9vsWItm8mhPYyolT4TqvQXo4p8grpX0cU= From: "amacleod at redhat dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/93917] VRP forgets range of value read from memory Date: Tue, 19 Sep 2023 15:11: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: 10.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: amacleod at redhat dot com X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: 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=3D93917 --- Comment #4 from Andrew Macleod --- Note a slight change in expectation as a result of commit r14-4141-gbf6b107e2a342319b3787ec960fc8014ef3aff91 for PR 110080 Due to a memory load in the second case, we do not remove the unreachable c= all now as there may be a commoning opportunity later (via inlining in this cas= e) in which this unreachable call may provide new information. The test case has been adjusted to current expectations where we leave this unreachable call and then remove it and set the global range in VRP2 instea= d.=