Commit 1216a772 authored by Manuel Mohr's avatar Manuel Mohr
Browse files

sparc: Lower CopyB nodes before lowering double words.

parent e8cf3d72
......@@ -426,6 +426,13 @@ static void sparc_lower_for_target(void)
lower_calls_with_compounds(LF_RETURN_HIDDEN);
for (i = 0; i < n_irgs; ++i) {
ir_graph *irg = get_irp_irg(i);
/* Turn all small CopyBs into loads/stores and all bigger CopyBs into
* memcpy calls. */
lower_CopyB(irg, 31, 32, false);
}
if (sparc_isa_template.fpu_arch == SPARC_FPU_ARCH_SOFTFLOAT)
lower_floating_point();
......@@ -439,13 +446,6 @@ static void sparc_lower_for_target(void)
lower_switch(irg, 4, 256, false);
lower_alloc(irg, SPARC_STACK_ALIGNMENT, false, -SPARC_MIN_STACKSIZE);
}
for (i = 0; i < n_irgs; ++i) {
ir_graph *irg = get_irp_irg(i);
/* Turn all small CopyBs into loads/stores and all bigger CopyBs into
* memcpy calls. */
lower_CopyB(irg, 31, 32, false);
}
}
static int sparc_is_mux_allowed(ir_node *sel, ir_node *mux_false,
......
Markdown is supported
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