From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DA198385B831; Mon, 23 Mar 2020 08:17:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA198385B831 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584951479; bh=Pz6FwHdWdFjlex5oCAs5NUhWfyI78CG+uPv+yP0lxJc=; h=From:To:Subject:Date:From; b=njT3nrahyP4qTl8ph+RtMFzXEoX1qXzRfu0+hUF2a+2Z9nIOq/QKeWCH1P+OZpi7q GJV58zmJaNKsqggoqH+WFx5jcief0NlHCLvHVGDAf9/sid7W3B6WYXijTvnoe2PxyD o4c5h76/WKsvVbmbLPOy5A1KsbjL9W7120M5pYcw= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/94267] New: Missed folding of &TARGET_MEM_REF Date: Mon, 23 Mar 2020 08:17:59 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Mar 2020 08:18:00 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94267 Bug ID: 94267 Summary: Missed folding of &TARGET_MEM_REF Product: gcc Version: 10.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: rguenth at gcc dot gnu.org Target Milestone: --- Seen in PR94266 IVOPTs can generate &TARGET_MEM_REF[ptr_1 + 0] which we obviously should represent as plain ptr_1, possibly casted. Likewise &TARGET_MEM_REF[ptr_1 + 4] should be canonicalized to &MEM_REF[ptr_1 + 4] or even a POINTER_PLUS_EXPR.=