X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbecopyheur.c;h=8533625c2878b712c6ba86ef8f87d5da624c2dce;hb=b88d0e6fd2154f51a2a333285c759f6757c4c715;hp=3551dc761b76c961618903aa60058192f136c864;hpb=294764ce7bb590e7714ef1378d7eda9608dbef6e;p=libfirm diff --git a/ir/be/becopyheur.c b/ir/be/becopyheur.c index 3551dc761..8533625c2 100644 --- a/ir/be/becopyheur.c +++ b/ir/be/becopyheur.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -114,7 +114,7 @@ static INLINE void qnode_add_conflict(const qnode_t *qn, const ir_node *n1, cons conflict_t c; DBG((dbg, LEVEL_4, "\t %+F -- %+F\n", n1, n2)); - if (get_irn_node_nr(n1) < get_irn_node_nr(n2)) { + if (get_irn_idx(n1) < get_irn_idx(n2)) { c.n1 = n1; c.n2 = n2; } else { @@ -133,7 +133,7 @@ static INLINE int qnode_are_conflicting(const qnode_t *qn, const ir_node *n1, co if (n1!=n2 && nodes_interfere(qn->ou->co->cenv, n1, n2)) return 1; /* search for recoloring conflicts */ - if (get_irn_node_nr(n1) < get_irn_node_nr(n2)) { + if (get_irn_idx(n1) < get_irn_idx(n2)) { c.n1 = n1; c.n2 = n2; } else { @@ -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 !!?");