From: Christoph Mallon Date: Sun, 25 Nov 2012 11:20:16 +0000 (+0100) Subject: beinsn: Remove the write-only attribute pos from be_operand_t. X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;ds=sidebyside;h=0570a14ad2d910107d0692ab2e2a76d6d265b9d2;p=libfirm beinsn: Remove the write-only attribute pos from be_operand_t. --- diff --git a/ir/be/beinsn.c b/ir/be/beinsn.c index f82b4173b..0ca128138 100644 --- a/ir/be/beinsn.c +++ b/ir/be/beinsn.c @@ -61,7 +61,6 @@ be_insn_t *be_scan_insn(be_chordal_env_t const *const env, ir_node *const irn) o.req = arch_get_irn_register_req(p); o.carrier = p; o.irn = irn; - o.pos = -(get_Proj_proj(p) + 1); o.partner = NULL; obstack_grow(obst, &o, sizeof(o)); insn->n_ops++; @@ -73,7 +72,6 @@ be_insn_t *be_scan_insn(be_chordal_env_t const *const env, ir_node *const irn) o.req = arch_get_irn_register_req(irn); o.carrier = irn; o.irn = irn; - o.pos = -1; o.partner = NULL; obstack_grow(obst, &o, sizeof(o)); insn->n_ops++; @@ -91,7 +89,6 @@ be_insn_t *be_scan_insn(be_chordal_env_t const *const env, ir_node *const irn) o.req = arch_get_irn_register_req_in(irn, i); o.carrier = op; o.irn = irn; - o.pos = i; o.partner = NULL; obstack_grow(obst, &o, sizeof(o)); insn->n_ops++; diff --git a/ir/be/beinsn_t.h b/ir/be/beinsn_t.h index 079c89706..7f3de18e4 100644 --- a/ir/be/beinsn_t.h +++ b/ir/be/beinsn_t.h @@ -40,7 +40,6 @@ struct be_operand_t { ir_node *carrier; /**< node representing the operand value (Proj or the node itself for defs, the used value for uses) */ be_operand_t *partner; /**< used in bechordal later... (TODO what does it do?) */ const bitset_t *regs; /**< admissible register bitset */ - int pos; /**< pos of the operand (0 to n are inputs, -1 to -n are outputs) */ const arch_register_req_t *req; /**< register constraints for the carrier node */ };