X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fstat%2Fdags.c;h=d52a702fd3b57a913fef66ec37d8c268699b4417;hb=edb11cbddcf9e4fef1bde33d576003af8a6a3323;hp=3fc110b302de1d1ca42bb853d6024ff585a9557b;hpb=863d31d7a5c8210432fef88b30fc3e8353131538;p=libfirm diff --git a/ir/stat/dags.c b/ir/stat/dags.c index 3fc110b30..d52a702fd 100644 --- a/ir/stat/dags.c +++ b/ir/stat/dags.c @@ -1,14 +1,28 @@ /* - * 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 - * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + * Copyright (C) 1995-2008 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 + * @brief Statistics for Firm. DAG's in graphs. + * @author Michael Beck + * @version $Id$ + */ #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -90,7 +104,7 @@ 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 */ /** @@ -227,10 +241,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); @@ -346,6 +360,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; + (void) global; /* do NOT check the const code irg */ if (graph->irg == get_const_code_irg())