From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0D82A3858C2D; Tue, 14 Nov 2023 07:01:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0D82A3858C2D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699945278; bh=n1IxaA4XS7Busl44MEzwanjWKoYSvGoSILHe1DAbRpk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DBhNlImD3ir0vzCIj2foJc4oNL70+kFm9oS8/wezNp/8ByjVNi9p3Z2gZifEnm087 wcMzeO3r9b1KXphpqjf5pNjnJROEK2dQw29VSMP5ZRUZAH+XgRqmSmMlS5vJsvOeQa 8GodzzVuNcduKTBo6ZPMpTlR1mc2gYHpaZXm7U2Q= From: "guojiufu at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112525] fail to eliminate unused store Date: Tue, 14 Nov 2023 07:01:17 +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: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: guojiufu 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: 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=3D112525 --- Comment #3 from Jiu Fu Guo --- One possible method is fixing DSE to let is able to remove those 'store's. (but need to take care of the case that is using 'arg_pointer' to pass parameters.) Another method: there is a patch https://gcc.gnu.org/pipermail/gcc-patches/2023-October/634500.html which introduces lighter-expander-sra (this patch is only for struct parameter no= w). We may enhance this patch to avoid storing the unused parameters.=