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;

Reply via email to