removed IncSP schedule before me work-around (did not work ;-)
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 31 Mar 2006 17:46:18 +0000 (17:46 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 31 Mar 2006 17:46:18 +0000 (17:46 +0000)
ir/be/ia32/ia32_optimize.c

index 1062a4c..e6bcc6d 100644 (file)
@@ -405,17 +405,6 @@ static void ia32_optimize_IncSP(ir_node *irn, ia32_code_gen_t *cg) {
        ir_node *prev = be_get_IncSP_pred(irn);
        int real_uses = get_irn_n_edges(prev);
 
-       if (real_uses != 1) {
-               /*
-                  This is a hack that should be removed if be_abi_fix_stack_nodes()
-                  is fixed. Currently it leaves some IncSP's outside the chain ...
-                  The previous IncSp is NOT our prev, but directly scheduled before ...
-                        Impossible in a bug-free implementation :-)
-                */
-               prev = sched_prev(irn);
-               real_uses = 1;
-       }
-
        if (be_is_IncSP(prev) && real_uses == 1) {
                /* first IncSP has only one IncSP user, kill the first one */
                unsigned       prev_offs = be_get_IncSP_offset(prev);