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) ...@@ -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) static void arm_set_frame_entity(ir_node *node, ir_entity *entity)
{ {
if (is_be_node(node)) { arm_load_store_attr_t *attr = get_arm_load_store_attr(node);
be_node_set_frame_entity(node, entity); attr->entity = entity;
} else {
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) 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) ...@@ -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) static void sparc_set_frame_entity(ir_node *node, ir_entity *entity)
{ {
if (is_be_node(node)) { /* we only say be_node_needs_frame_entity on nodes with load_store
be_node_set_frame_entity(node, entity); * attributes, so this should be fine */
} else { sparc_load_store_attr_t *attr = get_sparc_load_store_attr(node);
/* we only say be_node_needs_frame_entity on nodes with load_store assert(attr->is_frame_entity);
* attributes, so this should be fine */ assert(attr->base.immediate_value_entity == NULL);
sparc_load_store_attr_t *attr = get_sparc_load_store_attr(node); attr->base.immediate_value_entity = entity;
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 /** 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