optimize_graph_df() now removes superfluous keep-alive edges
[libfirm] / ir / ir / irnodeset.c
index 7ab40f9..1dc79ef 100644 (file)
@@ -1,3 +1,22 @@
+/*
+ * Copyright (C) 1995-2007 University of Karlsruhe.  All right reserved.
+ *
+ * This file is part of libFirm.
+ *
+ * This file may be distributed and/or modified under the terms of the
+ * GNU General Public License version 2 as published by the Free Software
+ * Foundation and appearing in the file LICENSE.GPL included in the
+ * packaging of this file.
+ *
+ * Licensees holding valid libFirm Professional Edition licenses may use
+ * this file in accordance with the libFirm Commercial License.
+ * Agreement provided with the Software.
+ *
+ * This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
+ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE.
+ */
+
 /**
  * @file
  * @author    Matthias Braun
@@ -6,9 +25,10 @@
               tries to guarantee deterministic behavior.
  * @version   $Id$
  */
-#include <config.h>
+#include "config.h"
 
 #include "irnodeset.h"
+#include "irnode_t.h"
 #include "hashptr.h"
 
 #define DO_REHASH
@@ -18,8 +38,8 @@
 #define ValueType                 ir_node*
 #define NullValue                 NULL
 #define DeletedValue              ((ir_node*)-1)
-#ifdef FIRM_debug
-#define Hash(this,value)          (value)->node_nr
+#ifdef DEBUG_libfirm
+#define Hash(this,value)          ((unsigned)((value)->node_nr))
 #else
 #define Hash(this,value)          HASH_PTR(value)
 #endif