No need to calculate liveness of NoMem
authorMatthias Braun <matze@braunis.de>
Wed, 10 Oct 2007 13:44:54 +0000 (13:44 +0000)
committerMatthias Braun <matze@braunis.de>
Wed, 10 Oct 2007 13:44:54 +0000 (13:44 +0000)
[r16141]

ir/be/belive.c
ir/be/ia32/bearch_ia32.c

index 62e9d91..02ba1d1 100644 (file)
@@ -63,6 +63,7 @@ static INLINE int is_liveness_node(const ir_node *irn)
        case iro_Bad:
        case iro_End:
        case iro_Anchor:
+       case iro_NoMem:
                return 0;
        default:;
        }
index 3d9477d..99319ec 100644 (file)
@@ -1468,12 +1468,12 @@ static void ia32_finish(void *self) {
                x87_simulate_graph(cg->arch_env, cg->birg);
        }
 
+       /* do peephole optimisations */
+       ia32_peephole_optimization(irg, cg);
+
        /* create block schedule, this also removes empty blocks which might
         * produce critical edges */
        cg->blk_sched = be_create_block_schedule(irg, cg->birg->exec_freq);
-
-       /* do peephole optimisations */
-       ia32_peephole_optimization(irg, cg);
 }
 
 /**