#include "obst.h"
#include "list.h"
#include "set.h"
+#include "irnode_t.h"
#include "bearch_t.h"
#include "bechordal_t.h"
#include "becopyopt.h"
-#include "benodesets.h"
/**
* Data representing the problem of copy minimization.
static INLINE int is_2addr_code(const arch_register_req_t *req)
{
- return req->type == arch_register_req_type_should_be_same;
+ return (req->type & arch_register_req_type_should_be_same) != 0;
}
/******************************************************************************
ASSERT_GS_AVAIL(co);
find.irn = irn;
- return set_find(co->nodes, &find, sizeof(find), nodeset_hash(irn));
+ return set_find(co->nodes, &find, sizeof(find), hash_irn(irn));
}
#define co_gs_nodes_begin(co) set_first((co)->nodes)