Commit e491316d authored by Andreas Fried's avatar Andreas Fried
Browse files

Remember to copy the AM attrs when replacing a node.

parent 17171ab3
...@@ -733,6 +733,7 @@ static void remat_simplifier(ir_node *node, void *env) ...@@ -733,6 +733,7 @@ static void remat_simplifier(ir_node *node, void *env)
get_irn_n(node, n_ia32_Sub_subtrahend), get_irn_n(node, n_ia32_Sub_subtrahend),
false); false);
arch_set_irn_register(cmp, flags_reg); arch_set_irn_register(cmp, flags_reg);
ia32_copy_am_attrs(cmp, node);
sched_replace(node, cmp); sched_replace(node, cmp);
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