sparc: fix delayslot picking order
[libfirm] / ir / be / sparc / bearch_sparc.c
index 47eac29..0831d50 100644 (file)
@@ -478,7 +478,9 @@ static void sparc_lower_for_target(void)
                ir_graph *irg = get_irp_irg(i);
                ir_lower_mode_b(irg, mode_Iu);
                lower_switch(irg, 4, 256, false);
-               lower_alloc(irg, SPARC_STACK_ALIGNMENT, false, SPARC_MIN_STACKSIZE);
+               /* 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);
        }
 }