From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25A513858288; Thu, 10 Aug 2023 12:20:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25A513858288 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691670014; bh=R5q+H2jyKXo5si50eDhYGYNm8Hhv2Ucr18K9Mi4RHuk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=J1zI/e0xuJBSxLO4prpU4Kn+UD9FA5tQGzrII8tONwmUlB9cjlH/h2WHUSeYm7Egk 4xrcRs0VHbHWQ3ksoSFZWdpgjrEgS6AwqfT2xy8eMYi2wls7r7L69jxSdbpawSr81R xXSReuG5cotfHhmtUAVEJHzxag+W6K76mNOLqY8g= From: "rguenther at suse dot de" 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:20:13 +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: rguenther at suse dot de 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 #6 from rguenther at suse dot de --- On Thu, 10 Aug 2023, theodort at inf dot ethz.ch wrote: > https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110963 >=20 > --- Comment #5 from Theodoros Theodoridis -= -- > (In reply to Richard Biener from comment #4) > > Alternatively you can put __attribute__((hot)) on 'main' which we other= wise > > consider cold. Maybe that's a good idea for future DCE regression sear= ches? >=20 >=20 > Thanks for the feedback. IIRC, I have reported at least one more case whe= re > renaming 'main' would make the issue go away. So if adding __attribute__(= (hot)) > makes sense, then I'll include it when searching. I think it makes sense, it properly distinguishes -Os from -O2 where otherwise those would behave too similar.=