From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BD88C3858C50; Wed, 10 Apr 2024 13:27:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BD88C3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1712755624; bh=GZ1xe5XSMOqy7dRy5nkZ1BZvkvM4dVGtsqbxv5MtrMM=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MMaRzmwSTL4tng+WeaLx0UR2FDk2nsa+JSEjV54bW3xgguHUkk1O4YiKzc6V2U28N PuFJ/rAVLVh93+zJPdj9IuMozl0mpeGHfluu3uJ+pnLm3Bs6DLyUOK+jMC02iV0HXk u+gtIe8vaIuWVEtIEAHT6SxuS2lx64g5gyPFrdAQ= From: "acoplan at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/114674] [aarch64] ldp_fusion fails to merge 2 strs due to imprecise alignment info Date: Wed, 10 Apr 2024 13:27:04 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: acoplan at gcc dot gnu.org X-Bugzilla-Status: NEW 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: everconfirmed bug_status cf_reconfirmed_on 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=3D114674 Alex Coplan changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Last reconfirmed| |2024-04-10 --- Comment #3 from Alex Coplan --- Confirmed. I think it might be best to take the maximum MEM_ALIGN between the adjusted= mem (new_mem) and the original mem (change_mem). In this case it happens that = the original mem (change_mem) has a stronger alignment guarantee, but in genera= l it could be the case that the adjusted mem gives a better alignment guarantee.= =20 Since both locations are known to point to the same address, it seems best = to me to take the largest alignment of the two.=