Commit 505cf513 authored by Matthias Braun's avatar Matthias Braun
Browse files

without be_Spill/be_Reload we won't set entities on be nodes

parent 15bb20c1
......@@ -144,12 +144,8 @@ static void arm_collect_frame_entity_nodes(ir_node *node, void *data)
static void arm_set_frame_entity(ir_node *node, ir_entity *entity)
{
if (is_be_node(node)) {
be_node_set_frame_entity(node, entity);
} else {
arm_load_store_attr_t *attr = get_arm_load_store_attr(node);
attr->entity = entity;
}
arm_load_store_attr_t *attr = get_arm_load_store_attr(node);
attr->entity = entity;
}
static ir_node *arm_new_reload(ir_node *value, ir_node *spill, ir_node *before)
......
......@@ -712,16 +712,12 @@ static void sparc_collect_frame_entity_nodes(ir_node *node, void *data)
static void sparc_set_frame_entity(ir_node *node, ir_entity *entity)
{
if (is_be_node(node)) {
be_node_set_frame_entity(node, entity);
} else {
/* we only say be_node_needs_frame_entity on nodes with load_store
* attributes, so this should be fine */
sparc_load_store_attr_t *attr = get_sparc_load_store_attr(node);
assert(attr->is_frame_entity);
assert(attr->base.immediate_value_entity == NULL);
attr->base.immediate_value_entity = entity;
}
/* we only say be_node_needs_frame_entity on nodes with load_store
* attributes, so this should be fine */
sparc_load_store_attr_t *attr = get_sparc_load_store_attr(node);
assert(attr->is_frame_entity);
assert(attr->base.immediate_value_entity == NULL);
attr->base.immediate_value_entity = entity;
}
/** returns true if the should_be_same constraints of a node must be
......
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