Commit 834a425a authored by Matthias Braun's avatar Matthias Braun
Browse files

start with smaller nodesets by default

[r14424]
parent a0587a55
......@@ -46,7 +46,7 @@
#define KeysEqual(this,key1,key2) (key1) == (key2)
#define SetRangeEmpty(ptr,size) memset(ptr, 0, (size) * sizeof((ptr)[0]))
#define hashset_init ir_nodeset_init
#define hashset_init _ir_nodeset_init
#define hashset_init_size ir_nodeset_init_size
#define hashset_destroy ir_nodeset_destroy
#define hashset_insert ir_nodeset_insert
......@@ -59,6 +59,11 @@
#include "hashset.c"
void ir_nodeset_init(ir_nodeset_t *nodeset)
{
ir_nodeset_init_size(nodeset, 16);
}
int ir_nodeset_contains(const ir_nodeset_t *this, const ir_node *node)
{
return _ir_nodeset_find(this, node) != NULL;
......
Supports Markdown
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