#include "config.h"
#endif
-#ifdef HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
-#ifdef HAVE_MALLOC_H
-#include <malloc.h>
-#endif
-
#include "debug.h"
#include "xmalloc.h"
#include "becopyopt_t.h"
#include "becopystat.h"
#include "benodesets.h"
#include "bitset.h"
+#include "raw_bitset.h"
+#include "xmalloc.h"
DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
*/
if (irn != trigger) {
bitset_t *free_cols = bitset_alloca(cls->n_regs);
- arch_register_req_t req;
+ const arch_register_req_t *req;
ir_node *curr;
int free_col;
bitset_flip_all(free_cols);
/* Exclude colors not assignable to the irn */
- arch_get_register_req(arch_env, &req, irn, -1);
- if (arch_register_req_is(&req, limited)) {
+ req = arch_get_register_req(arch_env, irn, -1);
+ if (arch_register_req_is(req, limited)) {
bitset_t *limited = bitset_alloca(cls->n_regs);
- req.limited(req.limited_env, limited);
+ rbitset_copy_to_bitset(req->limited, limited);
bitset_and(free_cols, limited);
}