Commit eb32d0c6 authored by Matthias Braun's avatar Matthias Braun
Browse files

sparc: fix lower_dw/lower_switch order

This should fix testsuite/opt/switch_ll.c
parent e87a9105
......@@ -447,12 +447,16 @@ static void sparc_lower_for_target(void)
lower_builtins(0, NULL);
for (size_t i = 0; i < n_irgs; ++i) {
ir_graph *irg = get_irp_irg(i);
lower_switch(irg, 4, 256, mode_gp);
}
sparc_lower_64bit();
for (i = 0; i < n_irgs; ++i) {
ir_graph *irg = get_irp_irg(i);
ir_lower_mode_b(irg, mode_Iu);
lower_switch(irg, 4, 256, mode_gp);
/* TODO: Pass SPARC_MIN_STACKSIZE as addr_delta as soon as
* Alloc nodes are implemented more efficiently. */
lower_alloc(irg, SPARC_STACK_ALIGNMENT, true, 0);
......
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