From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE6CE3858425; Wed, 21 Dec 2022 11:41:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE6CE3858425 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671622860; bh=2i5qafx2Cp2std4a0FlC2O04U8ubQWUI+dphYAYh1H8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HRbstL1jGJ2t9CY6lmp6h66/VtO5yljTG63Z6D7R4GZm6xvr69fu181/wTb1vLSJ0 Rkwn2P2PQD6CTK7JnTAuG9XZryHwQSYjedCZhiZJXMVmaPU02di0kk8r8T1QzzrgaX frSYgAVG6OdAZ7mKHLRPyGoCXZNeKMLGAb1bArKE= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/108007] [10/11/12/13 Regression] wrong code at -Os and above with "-fno-dce -fno-tree-dce" on x86_64-linux-gnu Date: Wed, 21 Dec 2022 11:41:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.5 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: priority 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=3D108007 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P3 |P2 Last reconfirmed|2022-12-07 00:00:00 |2022-12-21 --- Comment #6 from Richard Biener --- Martin, can you please have a look? Summary for node main/10: Returns value No parameter information. Summary for edge main/10->k/9: return value ignored Summary for node k/9: No parameter information. Summary for edge k/9->i/8: return value used only to compute caller return value Summary for node i/8: Returns value No parameter information. the k->i edge info looks misleading (the caller returns nothing), but the uses are all "dead". Eventually those dead stmts are now supposed to be cleaned up by the inliner because of the possibility of -fno-[tree-]d= ce, just in this case that isn't working? Not sure if really P2, but I guess return value removal isn't yet handled in that code path?=