From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6053C3857C50; Mon, 27 Nov 2023 09:43:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6053C3857C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1701078232; bh=cchiUIt64k3YtE+tUSl9t83eDcqODLiaj49oub0SdNY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=h5iIQVXPmh8XUeSbZJtfVysEhm7oRQLgtYQ3baVnpQF3UhFX0gUqd5TdG4YVI7+As ooqXneth7ftDxmimmZA8yfkySaT+YedBbYLPUNIjxkt3h5YooUlHglEtmO5TeMeGeg uL1ywBn+p5ZBcQ7flOn3hDwOMh2H1he7ZvGG/dNU= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/112706] missed simplification in FRE Date: Mon, 27 Nov 2023 09:43:51 +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: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D112706 --- Comment #6 from GCC Commits --- The master branch has been updated by Richard Biener : https://gcc.gnu.org/g:d9abaa8d58f5729925b1db735d4723a9ea825eaa commit r14-5872-gd9abaa8d58f5729925b1db735d4723a9ea825eaa Author: Richard Biener Date: Mon Nov 27 09:45:04 2023 +0100 tree-optimization/112706 - missed simplification of condition We lack a match.pd pattern recognizing ptr + o =3D=3D/!=3D ptr + o'. The following extends handling we have for integral types to pointers. PR tree-optimization/112706 * match.pd (ptr + o =3D=3D/!=3D/- ptr + o'): New patterns. * gcc.dg/tree-ssa/pr112706.c: New testcase.=