Commit 66208417 authored by Michael Beck's avatar Michael Beck
Browse files

BugFix: cannot change the pin state of already pinned nodes

[r20215]
parent 609b8333
......@@ -720,7 +720,9 @@ static void set_am_attributes(ir_node *node, const ia32_address_mode_t *am)
set_ia32_op_type(node, am->op_type);
set_ia32_ls_mode(node, am->ls_mode);
if (am->pinned == op_pin_state_pinned) {
set_irn_pinned(node, am->pinned);
/* beware: some nodes are already pinned and did not allow to change the state */
if (get_irn_pinned(node) != op_pin_state_pinned)
set_irn_pinned(node, op_pin_state_pinned);
}
if (am->commutative)
set_ia32_commutative(node);
......
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