From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6C66B385770D; Thu, 10 Aug 2023 12:24:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6C66B385770D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691670263; bh=IxsLtcJ3HTxAD/tji3nPiBuy+UF2eLWiNrfcB/EaluU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=erW2xBA2pi023UHA6xyTwHHc1bwg6dpFGXfQw5RAOJaGz0vbHD+BYSq0FKIr5AnwZ B7rfvLPg1SdDZlwx7fkTQyQEiNk8rxAo85Cvd0SdtyiyVixdBg9fWtC1mYFoZD8GbX YBCZGCleGEI/MHKEdtHCE838aV4fjTfXEy/cBKko= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110963] [14 Regression] Dead Code Elimination Regression since r14-2946-g46c8c225455 Date: Thu, 10 Aug 2023 12:24:23 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D110963 --- Comment #7 from Jan Hubicka --- We don't consider main cold, but executed once: code out of loops is optimi= zed for size, but anything in loops is optimized according to -O setting. I did not really think of users overwriting it by hot attribute, but looking into implementation it will work :)=