From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 597D1385DC1E; Fri, 26 May 2023 13:56:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 597D1385DC1E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685109396; bh=V1VAZZXnLEMPP37BvBT49v9Wc6ooIDenWbX5VIw2Pjw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WSL5hpkGKR6xdUMOowjWsn2pUVqamMrTUQX8aLwf199SBps1YUxTQLzCkLfLvGAyo ScqyvNlbEMuuYPM2Us59WUmXDtrT6Vw8eTFG0DcHw+OYPH5HmAJUYrUELEHG54U+xH OAbhyv+bYuLmenyMXsBeRQEueWguaO+YRdDIBbLA= From: "lis8215 at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/60749] combine is overly cautious when operating on volatile memory references Date: Fri, 26 May 2023 13:56:35 +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: 4.9.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: lis8215 at gmail dot com 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: cc attachments.created 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=3D60749 Siarhei Volkau changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lis8215 at gmail dot com --- Comment #2 from Siarhei Volkau --- Created attachment 55167 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D55167&action=3Dedit allow combine ld/st of volatile mem with any_extend op Is anyone bothering on that? I'm, as embedded engineer, sadly looking on th= at long standing issue. I can propose a quick patch which enables combining volatile mem ld/st with any_extend for most cases. And it seems, like platform specific test results remain the same with it (arm/aarch64/mips were tested). Post it in hope it can help for anyone who needs it.=