X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fbe%2Fbesched.c;h=21060592ec401aca5d2b5a9fc3cdd7deb48baf40;hb=9276447aec4972df060349e162f583c4898dfec8;hp=93f968220a955447bc471a9d7a66207872ee5e87;hpb=9738458b704ed24262f26d20cd7778b13bc21514;p=libfirm diff --git a/ir/be/besched.c b/ir/be/besched.c index 93f968220..21060592e 100644 --- a/ir/be/besched.c +++ b/ir/be/besched.c @@ -1,5 +1,28 @@ -/* $Id$ */ +/* + * 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 + * @brief Scheduling utilities for nodes in Blocks and Blocks. + * @author Sebastian Hack + * @version $Id$ + */ #ifdef HAVE_CONFIG_H # include "config.h" #endif @@ -19,7 +42,7 @@ #include "debug.h" #include "bemodule.h" -#include "bearch.h" +#include "bearch_t.h" #include "besched_t.h" #include "beutil.h" #include "belistsched.h" @@ -29,6 +52,7 @@ FIRM_IMPL1(sched_has_next, int, const ir_node *) FIRM_IMPL1(sched_has_prev, int, const ir_node *) FIRM_IMPL1(sched_next, ir_node *, const ir_node *) FIRM_IMPL1(sched_prev, ir_node *, const ir_node *) +FIRM_IMPL1(sched_is_scheduled, int, const ir_node *) FIRM_IMPL1(sched_first, ir_node *, const ir_node *) FIRM_IMPL1(sched_last, ir_node *, const ir_node *) FIRM_IMPL2(sched_add_after, ir_node *, ir_node *, ir_node *) @@ -142,11 +166,6 @@ static void remove_dead_nodes_walker(ir_node *block, void *data) continue; sched_remove(node); - - /* when a node is exchanged, it is turned into Bad, do not set ins for those */ - if (is_Bad(node)) - continue; - be_kill_node(node); } }