Fix profile_count::to_sreal_scale

gcc/ChangeLog:

	* profile-count.cc (profile_count::to_sreal_scale): Value is not know
	if we divide by zero.
This commit is contained in:
Jan Hubicka 2023-07-26 08:59:23 +02:00
parent 9fdbd7d6fa
commit 645c67f80c

View file

@ -345,7 +345,7 @@ profile_count::to_sreal_scale (profile_count in, bool *known) const
return 1;
}
if (known)
*known = true;
*known = in.m_val != 0;
if (*this == in)
return 1;
gcc_checking_assert (compatible_p (in));