Commit 65eaab18 by Jan Hubicka Committed by Jan Hubicka

Short circuit case where profiles are same.

        * profile-count.c (profile_count::to_sreal_scale): Short circuit
	case where profiles are same.

From-SVN: r278022
parent d07f74fa
2019-11-10 Jan Hubicka <hubicka@ucw.cz>
* profile-count.c (profile_count::to_sreal_scale): Short circuit
case where profiles are same.
2019-11-10 Jan Hubicka <hubicka@ucw.cz>
* cgraph.c (cgraph_edge::maybe_hot_p): Do not use sreal_frequency.
2019-11-10 Jan Hubicka <hubicka@ucw.cz>
......@@ -312,6 +312,8 @@ profile_count::to_sreal_scale (profile_count in, bool *known) const
*known = true;
if (*this == zero ())
return 0;
if (m_val == in.m_val)
return 1;
if (!in.m_val)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment