fehler64 (emit a 0 if none of the addressmode things is set)
[libfirm] / ir / be / belive.c
index 0becbab..205e08f 100644 (file)
@@ -56,6 +56,7 @@ static INLINE int is_liveness_node(const ir_node *irn)
        case iro_Block:
        case iro_Bad:
        case iro_End:
+       case iro_Anchor:
                return 0;
        default:;
        }
@@ -102,15 +103,6 @@ static INLINE unsigned _be_liveness_bsearch(struct _be_lv_info_t *arr, unsigned
        if(n == 0)
                return 0;
 
-#if 0
-       if(idx < payload[0].u.node.idx)
-               return 0;
-
-       if(idx > payload[n - 1].u.node.idx)
-               return n - 1;
-#endif
-
-       /* start a binary search for the requested node. */
        while(lo < hi) {
                int md          = lo + ((hi - lo) >> 1);
                unsigned md_idx = payload[md].u.node.idx;
@@ -769,8 +761,6 @@ void be_liveness_transfer(const arch_env_t *arch_env,
         * function. */
        assert(!is_Phi(node) && "liveness_transfer produces invalid results for phi nodes");
 
-#ifndef SCHEDULE_PROJS
-       /* kill all Proj's if a node is killed */
        if (get_irn_mode(node) == mode_T) {
                const ir_edge_t *edge;
 
@@ -782,7 +772,6 @@ void be_liveness_transfer(const arch_env_t *arch_env,
                        }
                }
        }
-#endif
 
        if (arch_irn_consider_in_reg_alloc(arch_env, cls, node)) {
                ir_nodeset_remove(nodeset, node);