re PR ipa/83001 (ICE in edge_badness, at ipa-inline.c:1025)
authorJan Hubicka <hubicka@ucw.cz>
Sun, 19 Nov 2017 18:56:58 +0000 (19:56 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 19 Nov 2017 18:56:58 +0000 (18:56 +0000)
PR ipa/83001
* profile-count.c (profile_count::to_sreal_scale): Fix return value
for uninitialied counts.

From-SVN: r254935

gcc/ChangeLog
gcc/profile-count.c

index 85dc9c52463679bfcfe81b03ecf73bd96a5ee818..e955bece4b98f5b72b3b535551ad3853c5720469 100644 (file)
@@ -1,3 +1,9 @@
+2017-11-19  Jan Hubicka  <hubicka@ucw.cz>
+
+       PR ipa/83001
+       * profile-count.c (profile_count::to_sreal_scale): Fix return value
+       for uninitialied counts.
+
 2017-11-19  Jan Hubicka  <hubicka@ucw.cz>
 
        PR ipa/60243
index e5d9faefc33c89a4ce88487d8d3867d0561d7b82..5d8e9c55913a3168e5f56db68f4aacada174ecd4 100644 (file)
@@ -268,7 +268,7 @@ profile_count::to_sreal_scale (profile_count in, bool *known) const
     {
       if (known)
        *known = false;
-      return CGRAPH_FREQ_BASE;
+      return 1;
     }
   if (known)
     *known = true;