trverify: cleanup, check irg.entity == entity.irg
[libfirm] / ir / opt / escape_ana.c
index f74ee0a..4843090 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"
 
@@ -202,7 +192,7 @@ static int can_escape(ir_node *n)
                                        size_t j;
                                        ent = get_Call_callee(succ, --k);
 
-                                       if (ent == unknown_entity) {
+                                       if (is_unknown_entity(ent)) {
                                                /* we don't know what will be called, a possible escape */
                                                return 1;
                                        }
@@ -424,7 +414,7 @@ static void transform_allocs(ir_graph *irg, walk_env_t *env)
                        }
                }
 
-               if (tp && tp != firm_unknown_type) {
+               if (tp && !is_unknown_type(tp)) {
                        /* we could determine the type, so we could place it on the frame */
                        dbg  = get_irn_dbg_info(alloc);
                        blk  = get_nodes_block(alloc);