X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur.c;h=dd3574df853b80e4706921d96589dd09e84ea076;hb=afbbc0b1ccd684c4c24bfd43d0f994123245f39f;hp=7c669b5e3fdca20b01075eea622774ce7a6ef62d;hpb=1ce363f80e6a204d4011f85813362d9bd1d0e7e4;p=libfirm diff --git a/ir/be/becopyheur.c b/ir/be/becopyheur.c index 7c669b5e3..dd3574df8 100644 --- a/ir/be/becopyheur.c +++ b/ir/be/becopyheur.c @@ -480,11 +480,11 @@ no_stable_set: * Creates a new qnode */ static INLINE qnode_t *new_qnode(const unit_t *ou, int color) { - qnode_t *qn = xmalloc(sizeof(*qn)); - qn->ou = ou; - qn->color = color; - qn->mis = xmalloc(ou->node_count * sizeof(*qn->mis)); - qn->conflicts = new_set(set_cmp_conflict_t, SLOTS_CONFLICTS); + qnode_t *qn = XMALLOC(qnode_t); + qn->ou = ou; + qn->color = color; + qn->mis = XMALLOCN(ir_node*, ou->node_count); + qn->conflicts = new_set(set_cmp_conflict_t, SLOTS_CONFLICTS); qn->changed_nodes = new_set(set_cmp_node_stat_t, SLOTS_CHANGED_NODES); return qn; } @@ -549,7 +549,7 @@ static void ou_optimize(unit_t *ou) { arch_get_allocatable_regs(aenv, ou->nodes[0], -1, pos_regs); - /* exclude ingore colors */ + /* exclude ignore colors */ bitset_andnot(pos_regs, ou->co->cenv->ignore_colors); assert(bitset_popcnt(pos_regs) != 0 && "No register is allowed for this node !!?");