Commit 952f3ccc authored by johnvg@science.ru.nl's avatar johnvg@science.ru.nl

Fix try_insert_function_update_node (for reuse unique nodes optimization) for...

Fix try_insert_function_update_node (for reuse unique nodes optimization) for callgraph profiling (thunks are larger, so we can fill fewer unique nodes)
parent 38e01ae3
......@@ -2918,7 +2918,9 @@ static Bool try_insert_root_constructor_update_node (NodeP node,FreeUniqueNodeId
static NodeP try_insert_function_update_node (NodeP node,FreeUniqueNodeIdsS **f_node_ids_l)
{
if (!(node->node_state.state_type==SimpleState && node->node_state.state_kind==SemiStrict) &&
(IsLazyState (node->node_state) ? node->node_arity<=2 : ExpectsResultNode (node->node_state)) &&
(IsLazyState (node->node_state)
? (DoCallGraphProfiling ? node->node_arity<=1 : node->node_arity<=2)
: ExpectsResultNode (node->node_state)) &&
node->node_symbol->symb_kind==definition)
{
SymbDef sdef;
......
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