clarify some node comments
[libfirm] / ir / opt / escape_ana.c
index 901ac42..be3ee27 100644 (file)
  * PURPOSE.
  */
 
-/*
- * Project:     libFIRM
- * File name:   ir/opt/escape_ana.c
- * Purpose:     escape analysis and optimization
- * Author:      Michael Beck
- * Modified by:
- * Created:     03.11.2005
- * CVS-ID:      $Id$
- * Copyright:   (c) 1999-2005 Universität Karlsruhe
- */
-
 /**
- * @file escape_ana.c
- *
- * A fast and simple Escape analysis.
+ * @file
+ * @author Michael Beck
+ * @date   03.11.2005
+ * @brief  A fast and simple Escape analysis.
  */
 #include "config.h"
 
@@ -66,7 +56,7 @@ typedef struct walk_env {
 } walk_env_t;
 
 /** debug handle */
-DEBUG_ONLY(firm_dbg_module_t *dbgHandle;)
+DEBUG_ONLY(static firm_dbg_module_t *dbgHandle;)
 
 /**
  * checks whether a Raise leaves a method
@@ -461,7 +451,7 @@ static void transform_allocs(ir_graph *irg, walk_env_t *env)
        /* if allocs were removed somehow */
        if (env->nr_removed && env->nr_deads) {
                /* exception control flow might have been changed */
-               set_irg_doms_inconsistent(irg);
+               clear_irg_state(irg, IR_GRAPH_STATE_CONSISTENT_DOMINANCE);
        }
 }
 
@@ -508,7 +498,7 @@ void escape_enalysis_irg(ir_graph *irg, check_alloc_entity_func callback)
                return;
        }
 
-       if (get_irg_outs_state(irg) != outs_consistent)
+       if (is_irg_state(irg, IR_GRAPH_STATE_CONSISTENT_OUTS))
                compute_irg_outs(irg);
 
        env.found_allocs = NULL;