From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A4E24385B831; Mon, 23 Mar 2020 07:59:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A4E24385B831 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584950343; bh=3fW0noV6V7yX+58XewFVDYpqF9ynrGtghOkZUoPKh3Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oRBC0Wp5y3Isqqa9bI6BqUYw0CxnReCt2t1VSwmrNfP9m2QHdhz0tjSlSNT9drSuM Zqq9kDKI3N02TehaYfWtwC6sq0J8kCKdqeJmUqdw7MKE1sR0IyaajjelwMPy9IRQzY ZbkEQud/KGNAGK02fblqRfnp/oI8byfPrJRuGomk= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyB0cmVlLW9wdGltaXphdGlvbi85NDI2Nl0gYWFyY2g2NA==?= =?UTF-8?B?77yaSUNFIGR1cmluZyBHSU1QTEUgcGFzczogZm9yd3Byb3A=?= Date: Mon, 23 Mar 2020 07:59:03 +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: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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 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 07:59:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94266 --- Comment #2 from Richard Biener --- This looks latent somewhat. The issue is manifold - first we end up with &TARGET_MEM_REF [_1] where the TARGET_MEM_REF was not canonicalized to a MEM_REF because static tree create_mem_ref_raw (tree type, tree alias_ptr_type, struct mem_address *add= r, bool verify) ... /* If possible use a plain MEM_REF instead of a TARGET_MEM_REF. ??? As IVOPTs does not follow restrictions to where the base pointer may point to create a MEM_REF only if we know that base is valid. */ if ((TREE_CODE (base) =3D=3D ADDR_EXPR || TREE_CODE (base) =3D=3D INTEGER= _CST) thus an SSA name base isn't wanted here. That may be legacy. The best action is probably to make forwprop not try to forward &TARGET_MEM= _REF since that's hardly a good idea and code in general isn't prepared to do th= at. Will test a patch along that line.=