From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7CC6E3858D1E; Fri, 11 Feb 2022 12:10:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7CC6E3858D1E From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/104498] Alias attribute being ignored by scheduler Date: Fri, 11 Feb 2022 12:10:40 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: alias, wrong-code 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: cc 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: Fri, 11 Feb 2022 12:10:40 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104498 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rsandifo at gcc dot gnu.org --- Comment #4 from Richard Biener --- (In reply to avieira from comment #3) > Sorry some confusion there, I thought it was base_alias_check bailing out > early, but that seems to return true, it is the memrefs_conflict_p that > returns 0. >=20 > I suspect rtx_equal_for_memref_p should have returned 1 for: > x: > (plus:DI (mult:DI (reg:DI 99 [ off.0_1 ]) > (const_int 4 [0x4])) > (const:DI (plus:DI (symbol_ref:DI ("*.LANCHOR0") [flags 0x182]) > (const_int 16 [0x10])))) >=20 > and y: > (plus:DI (mult:DI (reg:DI 99 [ off.0_1 ]) > (const_int 4 [0x4])) > (symbol_ref:DI ("b") [flags 0x2] )) >=20 > But it does not... must be because of that trailing (equivalence notes? > that's what I assume they are?) It's the section anchor that breaks things. There's a duplicate bug about = this somewhere, or a thread on the mailing list. But IIRC Richard had fixed thi= s?=