From abc7b9820b03e7a5eb0bf01b66e9b5c05cb9ee9e Mon Sep 17 00:00:00 2001 From: Michael Beck Date: Tue, 16 Oct 2007 14:06:53 +0000 Subject: [PATCH] removed unused got_lea attribute [r16235] --- ir/be/ia32/ia32_new_nodes.c | 27 --------------------------- ir/be/ia32/ia32_new_nodes.h | 17 +---------------- ir/be/ia32/ia32_nodes_attr.h | 6 ++---- 3 files changed, 3 insertions(+), 47 deletions(-) diff --git a/ir/be/ia32/ia32_new_nodes.c b/ir/be/ia32/ia32_new_nodes.c index c323d382a..199ceb7db 100644 --- a/ir/be/ia32/ia32_new_nodes.c +++ b/ir/be/ia32/ia32_new_nodes.c @@ -294,9 +294,6 @@ static int ia32_dump_node(ir_node *n, FILE *F, dump_reason_t reason) { /* commutative */ fprintf(F, "commutative = %d\n", is_ia32_commutative(n)); - /* got lea */ - fprintf(F, "got loea = %d\n", is_ia32_got_lea(n)); - /* need stackent */ fprintf(F, "need stackent = %d\n", is_ia32_need_stackent(n)); @@ -597,30 +594,6 @@ int is_ia32_commutative(const ir_node *node) { return attr->data.is_commutative; } -/** - * Sets node got_lea. - */ -void set_ia32_got_lea(ir_node *node) { - ia32_attr_t *attr = get_ia32_attr(node); - attr->data.got_lea = 1; -} - -/** - * Clears node got_lea. - */ -void clear_ia32_got_lea(ir_node *node) { - ia32_attr_t *attr = get_ia32_attr(node); - attr->data.got_lea = 0; -} - -/** - * Checks if node got lea. - */ -int is_ia32_got_lea(const ir_node *node) { - const ia32_attr_t *attr = get_ia32_attr_const(node); - return attr->data.got_lea; -} - void set_ia32_need_stackent(ir_node *node) { ia32_attr_t *attr = get_ia32_attr(node); attr->data.need_stackent = 1; diff --git a/ir/be/ia32/ia32_new_nodes.h b/ir/be/ia32/ia32_new_nodes.h index 98a2d7b85..ea8fb75f8 100644 --- a/ir/be/ia32/ia32_new_nodes.h +++ b/ir/be/ia32/ia32_new_nodes.h @@ -182,21 +182,6 @@ void clear_ia32_commutative(ir_node *node); */ int is_ia32_commutative(const ir_node *node); -/** - * Sets node got_lea. - */ -void set_ia32_got_lea(ir_node *node); - -/** - * Clears node got_lea. - */ -void clear_ia32_got_lea(ir_node *node); - -/** - * Checks if node got lea. - */ -int is_ia32_got_lea(const ir_node *node); - /** * Sets node needs_stackent */ @@ -208,7 +193,7 @@ void set_ia32_need_stackent(ir_node *node); void clear_ia32_need_stackent(ir_node *node); /** - * Checks if node needs a stackentity assigned + * Checks if node needs a stack entity assigned */ int is_ia32_need_stackent(const ir_node *node); diff --git a/ir/be/ia32/ia32_nodes_attr.h b/ir/be/ia32/ia32_nodes_attr.h index db35fccdf..319af8dc7 100644 --- a/ir/be/ia32/ia32_nodes_attr.h +++ b/ir/be/ia32/ia32_nodes_attr.h @@ -40,9 +40,9 @@ typedef enum { } ia32_op_type_t; typedef enum { - ia32_am_None = 0, /**<< no addrmode support */ + ia32_am_None = 0, /**< no addrmode support */ ia32_am_Dest = 1, - ia32_am_Source = 2, /**<< addrmode for source only */ + ia32_am_Source = 2, /**< addrmode for source only */ ia32_am_Full = 3 } ia32_am_type_t; @@ -93,8 +93,6 @@ struct ia32_attr_t { unsigned is_commutative:1; /**< Indicates whether op is commutative or not. */ - unsigned got_lea:1; /**< Indicates whether or not this node already consumed a LEA. */ - unsigned need_stackent:1; /**< Set to 1 if node need space on stack. */ unsigned need_64bit_stackent:1; /**< needs a 64bit stack entity (see double->unsigned int conv) */ unsigned need_32bit_stackent:1; /**< needs a 32bit stack entity */ -- 2.20.1