CVS:
[libfirm] / ir / ir / irgopt.h
1 /* Copyright (C) 1998 - 2001 by Universitaet Karlsruhe
2 ** All rights reserved.
3 **
4 ** Author: Christian Schaefer, Goetz Lindenmaier
5 **
6 ** Optimizations for a whole ir graph, i.e., a procedure.
7 */
8
9 # ifndef _IRGOPT_H_
10 # define _IRGOPT_H_
11
12 # include "irgraph.h"
13
14 /* Applies local optimizations (see iropt.h) to all nodes in the graph. */
15 void local_optimize_graph (ir_graph *irg);
16
17 /* Performs dead node elimination by copying the ir graph to a new obstack.
18    Further removes Bad predecesors from Blocks and the corresponding
19    inputs to Phi nodes.
20    Attention: the numbers assigned to nodes if the library is compiled for
21    development/debugging are not conserved by copying. */
22 void dead_node_elimination(ir_graph *irg);
23
24 # endif /* _IRGOPT_H_ */