X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fana%2Firbackedge.c;h=e1a6eefc2b35123731852903da933803c82b0a0e;hb=f6aeac6a547a52beb3cb663c5e63c05c9c3728ea;hp=d82f07eb1ac1c3c1cd0b771f0192ae4123682713;hpb=a999e1baedb84dc9b83059708699dac1c7fdb9a2;p=libfirm diff --git a/ir/ana/irbackedge.c b/ir/ana/irbackedge.c index d82f07eb1..e1a6eefc2 100644 --- a/ir/ana/irbackedge.c +++ b/ir/ana/irbackedge.c @@ -59,8 +59,8 @@ static unsigned *mere_get_backarray(ir_node *n) { } break; case iro_Phi: - assert(n->attr.phi_backedge && "backedge array not allocated!"); - return n->attr.phi_backedge; + assert(n->attr.phi.u.backedge && "backedge array not allocated!"); + return n->attr.phi.u.backedge; break; case iro_Filter: if (get_interprocedural_view()) { @@ -91,6 +91,7 @@ static unsigned *get_backarray(ir_node *n) { return ba; } +#ifndef NDEBUG /** * Returns non-zero if node has no backarray, or * if size of backarray == size of in array. @@ -101,6 +102,7 @@ static int legal_backarray(ir_node *n) { return 0; return 1; } +#endif void fix_backedges(struct obstack *obst, ir_node *n) { unsigned *arr = mere_get_backarray(n); @@ -116,7 +118,7 @@ void fix_backedges(struct obstack *obst, ir_node *n) { opc = get_irn_opcode(n); if (opc == iro_Phi) - n->attr.phi_backedge = arr; + n->attr.phi.u.backedge = arr; else if (opc == iro_Block) { if (!get_interprocedural_view()) n->attr.block.backedge = arr; @@ -222,7 +224,7 @@ void new_backedge_info(ir_node *n) { n->attr.block.backedge = new_backedge_arr(current_ir_graph->obst, get_irn_arity(n)); break; case iro_Phi: - n->attr.phi_backedge = new_backedge_arr(current_ir_graph->obst, get_irn_arity(n)); + n->attr.phi.u.backedge = new_backedge_arr(current_ir_graph->obst, get_irn_arity(n)); break; case iro_Filter: n->attr.filter.backedge = new_backedge_arr(current_ir_graph->obst, get_irn_arity(n));