From 0244a1f83828b6badac0cc9b4cbf94dc330189d0 Mon Sep 17 00:00:00 2001 From: Christoph Mallon Date: Sun, 13 May 2012 12:29:10 +0200 Subject: [PATCH] Remove the write-only attributes cg_backedge and in_cg from struct block_attr. --- ir/ir/ircons.c | 2 -- ir/ir/irop.c | 1 - ir/ir/irtypes.h | 4 ---- 3 files changed, 7 deletions(-) diff --git a/ir/ir/ircons.c b/ir/ir/ircons.c index 91577ab72..273e3c1d2 100644 --- a/ir/ir/ircons.c +++ b/ir/ir/ircons.c @@ -475,8 +475,6 @@ ir_node *new_rd_immBlock(dbg_info *dbgi, ir_graph *irg) res->attr.block.dynamic_ins = true; res->attr.block.irg.irg = irg; res->attr.block.backedge = NULL; - res->attr.block.in_cg = NULL; - res->attr.block.cg_backedge = NULL; res->attr.block.extblk = NULL; res->attr.block.entity = NULL; diff --git a/ir/ir/irop.c b/ir/ir/irop.c index 23ed46ea9..88ca21a1f 100644 --- a/ir/ir/irop.c +++ b/ir/ir/irop.c @@ -76,7 +76,6 @@ static void block_copy_attr(ir_graph *irg, const ir_node *old_node, default_copy_attr(irg, old_node, new_node); new_node->attr.block.irg.irg = irg; new_node->attr.block.phis = NULL; - new_node->attr.block.cg_backedge = NULL; new_node->attr.block.backedge = new_backedge_arr(irg->obst, get_irn_arity(new_node)); new_node->attr.block.block_visited = 0; memset(&new_node->attr.block.dom, 0, sizeof(new_node->attr.block.dom)); diff --git a/ir/ir/irtypes.h b/ir/ir/irtypes.h index f73b99c20..8c4dea401 100644 --- a/ir/ir/irtypes.h +++ b/ir/ir/irtypes.h @@ -211,11 +211,7 @@ typedef struct block_attr { in different phases. Eventually inline the whole datastructure. */ ir_dom_info pdom; /**< Datastructure that holds information about post-dominators. */ - ir_node ** in_cg; /**< array with predecessors in - * interprocedural_view, if they differ - * from intraprocedural predecessors */ bitset_t *backedge; /**< Bitfield n set to true if pred n is backedge.*/ - bitset_t *cg_backedge; /**< Bitfield n set to true if pred n is interprocedural backedge. */ ir_extblk *extblk; /**< The extended basic block this block belongs to. */ ir_entity *entity; /**< entitiy representing this block */ ir_node *phis; /**< The list of Phi nodes in this block. */ -- 2.20.1