From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C83DB3858426; Sat, 16 Mar 2024 01:31:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C83DB3858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710552672; bh=rSVOMlqvsQvYoH9HIJqrRzCs6rMv60D3d8lZcdolwXI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=bJBuHb5Yhf8FeGD6YEz//ELoxGkZU7jKKMYL9w9Tp09isnxRMOR4OCYWJVp8uFSvb Pra7zD3W0YOrM0wwV4Ygfbd1gyT5hx7QDUqSWwKhnLenvNiBw31TYFlO/IEKuI+kGh DutUkBOYmjjMBuiYR2I956s+FiOifaV5EaDOL2BA= From: "erozen at microsoft dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug gcov-profile/113765] [14 Regression] ICE: autofdo: val-profiler-threads-1.c compilation, error: probability of edge from entry block not initialized Date: Sat, 16 Mar 2024 01:31:11 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: gcov-profile X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-checking X-Bugzilla-Severity: normal X-Bugzilla-Who: erozen at microsoft dot com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned 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=3D113765 --- Comment #4 from Eugene Rozenfeld --- auto-profile currently doesn't guarantee that it will set probabilities on = all edges because of zero basic block counts. Normally those edges just have probabilities set by the preceding profile_estimate pass but under -O0 profile_estimate pass doesn't run. I think the correct fix is not to set full_profile to true in auto-profile.cc. Under -O1 and higher it's already = set in profile_estimate and under -O0 auto_profile doesn't guarantee a full pro= file so shouldn't set the flag.=