Commit ce4fdd2c authored by Christoph Mallon's avatar Christoph Mallon
Browse files

cleanup: Replace ir_nodeset_contains() + ir_nodeset_insert() by just the latter.

parent 2962c1c7
......@@ -121,10 +121,9 @@ static void lower_alloca_free(ir_node *node, void *data)
} else {
return;
}
if (ir_nodeset_contains(&transformed, node))
if (!ir_nodeset_insert(&transformed, node))
return;
ir_nodeset_insert(&transformed, node);
size = get_type_size_bytes(type);
if (is_unknown_type(type))
size = 1;
......
......@@ -423,9 +423,8 @@ static void find_switch_nodes(ir_node *block, void *ctx)
if (!is_Switch(switchn))
return;
if (ir_nodeset_contains(&env->processed, switchn))
if (!ir_nodeset_insert(&env->processed, switchn))
return;
ir_nodeset_insert(&env->processed, switchn);
analyse_switch0(&info, switchn);
......
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