X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgmod.c;h=46a71184ff86419b100622d6f50659e818d6d7a6;hb=7599c9b252632e5766dc10857d91eb8862538bf5;hp=d19b21a6ee38c5341ae3937e5cacc214cd6d5ed6;hpb=53bb233f7386bdf8009214518b3186ee247da956;p=libfirm diff --git a/ir/ir/irgmod.c b/ir/ir/irgmod.c index d19b21a6e..46a71184f 100644 --- a/ir/ir/irgmod.c +++ b/ir/ir/irgmod.c @@ -1,13 +1,14 @@ - -/* Copyright (C) 1998 - 2000 by Universitaet Karlsruhe -** All rights reserved. -** -** Authors: Martin Trapp, Christian Schaefer -** -** irgmod: ir graph modification -*/ - -/* $Id$ */ +/* + * Project: libFIRM + * File name: ir/ir/irgmod.h + * Purpose: Support for ir graph modification. + * Author: Martin Trapp, Christian Schaefer + * Modified by: Goetz Lindenmaier + * Created: + * CVS-ID: $Id$ + * Copyright: (c) 1998-2003 Universität Karlsruhe + * Licence: This file protected by GPL - GNU GENERAL PUBLIC LICENSE. + */ #ifdef HAVE_CONFIG_H # include @@ -47,6 +48,7 @@ turn_into_tuple (ir_node *node, int arity) INLINE void exchange (ir_node *old, ir_node *nw) { + assert(get_irn_op(old)->opar != oparity_dynamic); ir_node *block = old->in[0]; old->op = op_Id; @@ -59,12 +61,12 @@ exchange (ir_node *old, ir_node *nw) /* Functionality for collect_phis */ /**********************************************************************/ -void +static void clear_link (ir_node *n, void *env) { set_irn_link(n, NULL); } -void +static void collect (ir_node *n, void *env) { ir_node *pred; if (get_irn_op(n) == op_Phi) { @@ -100,7 +102,7 @@ void collect_phiprojs(ir_graph *irg) { /* Moves node and all predecessors of node from from_bl to to_bl. Does not move predecessors of Phi nodes (or block nodes). */ -void move (ir_node *node, ir_node *from_bl, ir_node *to_bl) { +static void move (ir_node *node, ir_node *from_bl, ir_node *to_bl) { int i; ir_node *proj, *pred; @@ -145,7 +147,7 @@ void part_block(ir_node *node) { ir_node *in[1]; in[0] = new_Jmp(); set_irn_in(old_block, 1, in); - irn_vrfy(old_block); + irn_vrfy_irg(old_block, current_ir_graph); } /* move node and its predecessors to new_block */