X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fir%2Firgmod.c;h=16c51119ba23bc4197e1d180fb83095869b13f77;hb=0bddf6c31e2dc664e50eed6609ac36a1a86e1536;hp=be77a7ab7095781e23002adf50ea0a4e2edc474b;hpb=f8cc15664f571aa7ef89d6f6bc8d5bd2b8ca7d53;p=libfirm diff --git a/ir/ir/irgmod.c b/ir/ir/irgmod.c index be77a7ab7..16c51119b 100644 --- a/ir/ir/irgmod.c +++ b/ir/ir/irgmod.c @@ -36,12 +36,6 @@ #include "irtools.h" #include "error.h" -/** - * Turns a node into a "useless" Tuple. The Tuple just forms a tuple - * from several inputs. - * This is useful if a node returning a tuple is removed, but the Projs - * extracting values from the tuple are not available. - */ void turn_into_tuple(ir_node *node, int arity) { ir_graph *irg = get_irn_irg(node); @@ -57,11 +51,6 @@ void turn_into_tuple(ir_node *node, int arity) set_irn_op(node, op_Tuple); } -/** - * Insert irnode `new' in place of irnode `old' - * Since `new' may be bigger than `old' replace `old' - * by an op_Id which is smaller than everything. - */ void exchange(ir_node *old, ir_node *nw) { ir_graph *irg; @@ -117,10 +106,6 @@ void exchange(ir_node *old, ir_node *nw) | IR_GRAPH_STATE_CONSISTENT_LOOPINFO); } -/*--------------------------------------------------------------------*/ -/* Functionality for collect_phis */ -/*--------------------------------------------------------------------*/ - /** * Walker: links all Phi nodes to their Blocks lists, * all Proj nodes to there predecessors. @@ -151,10 +136,6 @@ void collect_phiprojs(ir_graph *irg) irg_walk_graph(irg, firm_clear_node_and_phi_links, collect_phiprojs_walker, NULL); } -/*--------------------------------------------------------------------*/ -/* Functionality for part_block */ -/*--------------------------------------------------------------------*/ - /** * Moves node and all predecessors of node from from_bl to to_bl. * Does not move predecessors of Phi nodes (or block nodes).