From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id AA7A5385840E; Thu, 10 Aug 2023 12:13:50 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AA7A5385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691669630; bh=1sW8la03w7H8TkLViQ/QiWyrSj+LvXxmJ6pjey4nnBo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=kdKLbKSAaWQypM4XtRFHymihlZ+vhvtb8IGYKp+nQ+6zzaMawUaGvbYoocDq0Xu+i BKI/1SsCPSW7cT5QmSn00FcupGNq4CuuRsxS3DL8wNVYwQpKakz4U9bqUBaTVrqk7S cTg/k+Amd9Bo2ZEcx2oZXOUjBJQ17ev56CN4QZPY= From: "theodort at inf dot ethz.ch" 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:13:50 +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: theodort at inf dot ethz.ch 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 #5 from Theodoros Theodoridis --- (In reply to Richard Biener from comment #4) > Alternatively you can put __attribute__((hot)) on 'main' which we otherwi= se > consider cold. Maybe that's a good idea for future DCE regression search= es? Thanks for the feedback. IIRC, I have reported at least one more case where renaming 'main' would make the issue go away. So if adding __attribute__((h= ot)) makes sense, then I'll include it when searching.=