From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C4673858431; Fri, 24 Nov 2023 12:43:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C4673858431 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1700829793; bh=l5q5/1IALLkAJVDFFY33EeFZT71hDLFJO/OF5l3xqqY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=i3J/RoByJHPqwK78wzpUxx1an1WLj7GgubYhyZA6xNm3rh52FwP4S6SNXc+/c0nFg T39hHGx/Qs/5MpL1LU3dyiDqfeNfMHsYkQPcnR+Kz2yBS+a6jB9evf8ps2DH/eSZZc 4DJlsC1QzF5sBAJ2mEf4OQjRkJ7Ni9MOrgsFa1mg= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/108351] [13/14 Regression] Dead Code Elimination Regression at -O3 since r13-4240-gfeeb0d68f1c708 Date: Fri, 24 Nov 2023 12:43:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames 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: 13.3 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108351 Sam James changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sjames at gcc dot gnu.org --- Comment #8 from Sam James --- (In reply to Martin Jambor from comment #5) > If you rename main to something else, like bar, and so the calls to f > outside of the loop are not considered cold, you get the GCC 12 > behavior. Is this reduced from a real-world problem? >=20 Yann?=