This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix pasto in to_sreal_scale
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 19 Nov 2017 19:56:23 +0100
- Subject: Fix pasto in to_sreal_scale
- Authentication-results: sourceware.org; auth=none
Hi,
this patch fixes ICE with -fno-guess-branch-probability.
Bootstrapped/regtested x86_64-linux, comitted.
Honza
PR ipa/83001
* profile-count.c (profile_count::to_sreal_scale): Fix return value
for uninitialied counts.
Index: profile-count.c
===================================================================
--- profile-count.c (revision 254929)
+++ profile-count.c (working copy)
@@ -268,7 +268,7 @@ profile_count::to_sreal_scale (profile_c
{
if (known)
*known = false;
- return CGRAPH_FREQ_BASE;
+ return 1;
}
if (known)
*known = true;