- BugFix: check mode_T nodes for different_constraints
[libfirm] / ir / be / belive.c
index 523b81f..e9e5783 100644 (file)
@@ -24,9 +24,7 @@
  * @date        06.12.2004
  * @version     $Id$
  */
-#ifdef HAVE_CONFIG_H
 #include "config.h"
-#endif
 
 /* statev is expensive here, only enable when needed */
 #define DISABLE_STATEV
@@ -824,12 +822,11 @@ void be_liveness_transfer(const arch_register_class_t *cls,
 
 
 
-void be_liveness_end_of_block(const be_lv_t *lv, const arch_env_t *arch_env,
+void be_liveness_end_of_block(const be_lv_t *lv,
                               const arch_register_class_t *cls,
                               const ir_node *block, ir_nodeset_t *live)
 {
        int i;
-       (void)arch_env; // TODO remove parameter
 
        assert(lv->nodes && "live sets must be computed");
        be_lv_foreach(lv, block, be_lv_state_end, i) {
@@ -843,14 +840,14 @@ void be_liveness_end_of_block(const be_lv_t *lv, const arch_env_t *arch_env,
 
 
 
-void be_liveness_nodes_live_at(const be_lv_t *lv, const arch_env_t *arch_env,
+void be_liveness_nodes_live_at(const be_lv_t *lv,
                                const arch_register_class_t *cls,
                                const ir_node *pos, ir_nodeset_t *live)
 {
        const ir_node *bl = is_Block(pos) ? pos : get_nodes_block(pos);
        ir_node *irn;
 
-       be_liveness_end_of_block(lv, arch_env, cls, bl, live);
+       be_liveness_end_of_block(lv, cls, bl, live);
        sched_foreach_reverse(bl, irn) {
                /*
                 * If we encounter the node we want to insert the Perm after,
@@ -863,23 +860,6 @@ void be_liveness_nodes_live_at(const be_lv_t *lv, const arch_env_t *arch_env,
        }
 }
 
-void be_liveness_nodes_live_at_input(const be_lv_t *lv,
-                                     const arch_env_t *arch_env,
-                                     const arch_register_class_t *cls,
-                                     const ir_node *pos, ir_nodeset_t *live)
-{
-       const ir_node *bl = is_Block(pos) ? pos : get_nodes_block(pos);
-       ir_node *irn;
-
-       assert(lv->nodes && "live sets must be computed");
-       be_liveness_end_of_block(lv, arch_env, cls, bl, live);
-       sched_foreach_reverse(bl, irn) {
-               be_liveness_transfer(cls, irn, live);
-               if(irn == pos)
-                       return;
-       }
-}
-
 static void collect_node(ir_node *irn, void *data)
 {
        struct obstack *obst = data;