Message ID | CAO2gOZUPiiVg46hWiKUA4NzpV0dwqkCC_jxk2y4ATx0etbe_aQ@mail.gmail.com |
---|---|
State | New |
Headers | show |
Index: gcc/cgraph.c =================================================================== --- gcc/cgraph.c (revision 203609) +++ gcc/cgraph.c (working copy) @@ -877,6 +877,10 @@ cgraph_create_edge_1 (struct cgraph_node *caller, if (call_stmt && caller->call_site_hash) cgraph_add_edge_to_call_site_hash (edge); + if (count > 0 && edge->callee + && edge->callee->frequency == NODE_FREQUENCY_UNLIKELY_EXECUTED) + edge->callee->frequency = NODE_FREQUENCY_NORMAL; + return edge; }