From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A05AD3857703; Mon, 8 May 2023 05:35:53 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A05AD3857703 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683524153; bh=pYd75nUNNYWzt7Rvbrn+C2klE8aXdEHRkN9sG0a8SeQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=IkrapXnlWUAI2oEmk/UuO1CKFDiHM4daMRc5WAXXZL60nngkk1jTUXIsuyZY2NWQ2 0TDMcdha8Gg4zCHaABY/yw41VIZqrBJEHBW7W7uJ2hAhssyVayoUqZMUtteuFhgPk7 8wjCAV7q/o0LxPFWNBq5sj3nv8R4tNcCUyvea1sk= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/107888] [12/13/14 Regression] Missed min/max transformation in phiopt due to VRP Date: Mon, 08 May 2023 05:35:52 +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: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: pinskia at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.3 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=3D107888 --- Comment #5 from Andrew Pinski --- I think this should not be hard to add to minmax_from_comparison I think. Though right now we don't call it for the non-constant case but that should= be easy to fix I think.=