Commit 8132e412 authored by Christian Würdig's avatar Christian Würdig
Browse files

clear remat flag in AM nodes

parent 668e15df
......@@ -888,6 +888,9 @@ void ia32_optimize_am(ir_node *irn, void *env) {
/* set base and index */
set_irn_n(irn, 0, get_irn_n(left, 0));
set_irn_n(irn, 1, get_irn_n(left, 1));
/* clear remat flag */
set_ia32_flags(irn, get_ia32_flags(irn) & ~arch_irn_flags_rematerializable);
}
}
/* check if the node is an address mode candidate */
......@@ -1020,6 +1023,9 @@ void ia32_optimize_am(ir_node *irn, void *env) {
set_Proj_pred(mem_proj, irn);
set_Proj_proj(mem_proj, 1);
/* clear remat flag */
set_ia32_flags(irn, get_ia32_flags(irn) & ~arch_irn_flags_rematerializable);
DB((mod, LEVEL_1, "merged with %+F and %+F into dest AM\n", load, store));
}
} /* if (store) */
......@@ -1070,6 +1076,9 @@ void ia32_optimize_am(ir_node *irn, void *env) {
set_ia32_frame_ent(irn, get_ia32_frame_ent(left));
set_ia32_ls_mode(irn, get_ia32_ls_mode(left));
/* clear remat flag */
set_ia32_flags(irn, get_ia32_flags(irn) & ~arch_irn_flags_rematerializable);
if (is_ia32_use_frame(left))
set_ia32_use_frame(irn);
......
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