Commit 3b01f130 authored by Matthias Braun's avatar Matthias Braun
Browse files

remove odd is_irn_pinned_in_irg function

parent c570bc13
...@@ -185,14 +185,6 @@ FIRM_API op_pin_state get_irn_pinned(const ir_node *node); ...@@ -185,14 +185,6 @@ FIRM_API op_pin_state get_irn_pinned(const ir_node *node);
/** Sets pin state for nodes with op pin state op_pin_state_exc_pinned */ /** Sets pin state for nodes with op pin state op_pin_state_exc_pinned */
FIRM_API void set_irn_pinned(ir_node *node, op_pin_state state); FIRM_API void set_irn_pinned(ir_node *node, op_pin_state state);
/** Returns whether the node is currently pinned.
*
* If get_irn_pinned returns op_pin_state_floats and the graph the
* node belongs to is in state op_poin_state_floats then this function
* returns 'floats', else 'pinned'.
*/
FIRM_API op_pin_state is_irn_pinned_in_irg(const ir_node *node);
/** /**
* IR node constructor. * IR node constructor.
* Create a new IR node in irg, with an op, mode, arity and * Create a new IR node in irg, with an op, mode, arity and
......
...@@ -394,11 +394,6 @@ op_pin_state (get_irn_pinned)(const ir_node *node) ...@@ -394,11 +394,6 @@ op_pin_state (get_irn_pinned)(const ir_node *node)
return get_irn_pinned_(node); return get_irn_pinned_(node);
} }
op_pin_state (is_irn_pinned_in_irg) (const ir_node *node)
{
return is_irn_pinned_in_irg_(node);
}
void set_irn_pinned(ir_node *node, op_pin_state state) void set_irn_pinned(ir_node *node, op_pin_state state)
{ {
/* due to optimization an opt may be turned into a Tuple */ /* due to optimization an opt may be turned into a Tuple */
......
...@@ -38,7 +38,6 @@ ...@@ -38,7 +38,6 @@
#define set_irn_link(node, link) set_irn_link_(node, link) #define set_irn_link(node, link) set_irn_link_(node, link)
#define get_irn_link(node) get_irn_link_(node) #define get_irn_link(node) get_irn_link_(node)
#define get_irn_pinned(node) get_irn_pinned_(node) #define get_irn_pinned(node) get_irn_pinned_(node)
#define is_irn_pinned_in_irg(node) is_irn_pinned_in_irg_(node)
#define is_binop(node) is_binop_(node) #define is_binop(node) is_binop_(node)
#define is_SymConst_addr_ent(node) is_SymConst_addr_ent_(node) #define is_SymConst_addr_ent(node) is_SymConst_addr_ent_(node)
#define get_Block_n_cfgpreds(node) get_Block_n_cfgpreds_(node) #define get_Block_n_cfgpreds(node) get_Block_n_cfgpreds_(node)
...@@ -332,13 +331,6 @@ static inline op_pin_state get_irn_pinned_(const ir_node *node) ...@@ -332,13 +331,6 @@ static inline op_pin_state get_irn_pinned_(const ir_node *node)
return state; return state;
} }
static inline op_pin_state is_irn_pinned_in_irg_(const ir_node *node)
{
if (get_irg_pinned(get_irn_irg(node)) == op_pin_state_floats)
return get_irn_pinned(node);
return op_pin_state_pinned;
}
static inline int is_binop_(const ir_node *node) static inline int is_binop_(const ir_node *node)
{ {
assert(is_ir_node_(node)); assert(is_ir_node_(node));
......
...@@ -1611,7 +1611,7 @@ int irn_verify_irg(const ir_node *n, ir_graph *irg) ...@@ -1611,7 +1611,7 @@ int irn_verify_irg(const ir_node *n, ir_graph *irg)
"invalid pin state", 0, "invalid pin state", 0,
ir_printf("node %+F", n); ir_printf("node %+F", n);
); );
} else if (!is_Block(n) && is_irn_pinned_in_irg(n) } else if (!is_Block(n)
&& irg_has_properties(irg, IR_GRAPH_PROPERTY_NO_BADS)) { && irg_has_properties(irg, IR_GRAPH_PROPERTY_NO_BADS)) {
ASSERT_AND_RET_DBG(is_Block(get_nodes_block(n)) || is_Anchor(n), ASSERT_AND_RET_DBG(is_Block(get_nodes_block(n)) || is_Anchor(n),
"block input is not a block", 0, "block input is not a block", 0,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment