X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fdags.c;h=e60709624464eed37018f42481550be6c7d40d0b;hb=cbe8608ae6f9a523d007919691104b444c92d004;hp=f1ee384272ea398a072fa5d6e7784199d29a073a;hpb=f430a768a5b70618597871d6bbc1c212d2b325c1;p=libfirm diff --git a/ir/stat/dags.c b/ir/stat/dags.c index f1ee38427..e60709624 100644 --- a/ir/stat/dags.c +++ b/ir/stat/dags.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved. + * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved. * * This file is part of libFirm. * @@ -23,9 +23,7 @@ * @author Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include @@ -104,14 +102,15 @@ static int is_arg(ir_node *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) { - dag_entry_t *entry = obstack_alloc(&dag_env->obst, sizeof(*entry)); +static dag_entry_t *new_dag_entry(dag_env_t *dag_env, ir_node *node) +{ + dag_entry_t *entry = OALLOC(&dag_env->obst, dag_entry_t); entry->num_nodes = 1; entry->num_roots = 1; @@ -241,10 +240,10 @@ static void connect_dags(ir_node *node, void *env) } /* 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; - 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);