projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move irlivechk from public to private
[libfirm]
/
ir
/
stat
/
dags.c
diff --git
a/ir/stat/dags.c
b/ir/stat/dags.c
index
17f795b
..
e6fe8b7
100644
(file)
--- a/
ir/stat/dags.c
+++ b/
ir/stat/dags.c
@@
-1,5
+1,5
@@
/*
/*
- * Copyright (C) 1995-200
7
University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-200
8
University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
*
* This file is part of libFirm.
*
@@
-17,19
+17,13
@@
* PURPOSE.
*/
* PURPOSE.
*/
-/*
- * Project: libFIRM
- * File name: ir/ir/dags.c
- * Purpose: Statistics for Firm. DAG's in graphs.
- * Author: Michael Beck
- * Created:
- * CVS-ID: $Id$
- * Copyright: (c) 2004 Universität Karlsruhe
+/**
+ * @file
+ * @brief Statistics for Firm. DAG's in graphs.
+ * @author Michael Beck
+ * @version $Id$
*/
*/
-
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#include <assert.h>
#include <assert.h>
@@
-108,14
+102,14
@@
static int is_arg(ir_node *node)
return 0;
node = get_Proj_pred(node);
return 0;
node = get_Proj_pred(node);
- return
get_irn_op(node) == op_Start
;
+ return
is_Start(node)
;
} /* is_arg */
/**
* Allocate a new DAG entry.
*/
static dag_entry_t *new_dag_entry(dag_env_t *dag_env, ir_node *node) {
} /* is_arg */
/**
* Allocate a new DAG entry.
*/
static dag_entry_t *new_dag_entry(dag_env_t *dag_env, ir_node *node) {
- dag_entry_t *entry =
obstack_alloc(&dag_env->obst, sizeof(*entry)
);
+ dag_entry_t *entry =
OALLOC(&dag_env->obst, dag_entry_t
);
entry->num_nodes = 1;
entry->num_roots = 1;
entry->num_nodes = 1;
entry->num_roots = 1;
@@
-245,10
+239,10
@@
static void connect_dags(ir_node *node, void *env)
} /* if */
/* if this option is set, Loads are always leaves */
} /* if */
/* if this option is set, Loads are always leaves */
- if (dag_env->options & FIRMSTAT_LOAD_IS_LEAVE &&
get_irn_op(node) == op_Load
)
+ if (dag_env->options & FIRMSTAT_LOAD_IS_LEAVE &&
is_Load(node)
)
return;
return;
- if (dag_env->options & FIRMSTAT_CALL_IS_LEAVE &&
get_irn_op(node) == op_Call
)
+ if (dag_env->options & FIRMSTAT_CALL_IS_LEAVE &&
is_Call(node)
)
return;
entry = get_irn_dag_entry(node);
return;
entry = get_irn_dag_entry(node);
@@
-364,6
+358,7
@@
void count_dags_in_graph(graph_entry_t *global, graph_entry_t *graph)
dag_env_t root_env;
dag_entry_t *entry;
unsigned id;
dag_env_t root_env;
dag_entry_t *entry;
unsigned id;
+ (void) global;
/* do NOT check the const code irg */
if (graph->irg == get_const_code_irg())
/* do NOT check the const code irg */
if (graph->irg == get_const_code_irg())