Skip to content

Commit e1364c6

Browse files
author
hubicka
committed
PR ipa/83001 * profile-count.c (profile_count::to_sreal_scale): Fix return value for uninitialied counts. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@254935 138bc75d-0d04-0410-961f-82ee72b054a4
1 parent a6b9a5b commit e1364c6

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

gcc/ChangeLog

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2017-11-19 Jan Hubicka <[email protected]>
2+
3+
PR ipa/83001
4+
* profile-count.c (profile_count::to_sreal_scale): Fix return value
5+
for uninitialied counts.
6+
17
2017-11-19 Jan Hubicka <[email protected]>
28

39
PR ipa/60243

gcc/profile-count.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ profile_count::to_sreal_scale (profile_count in, bool *known) const
268268
{
269269
if (known)
270270
*known = false;
271-
return CGRAPH_FREQ_BASE;
271+
return 1;
272272
}
273273
if (known)
274274
*known = true;

0 commit comments

Comments
 (0)