X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Firgopt.h;h=dac94fdda0c9b09ac0717367af808436efe66b27;hb=fa9c992b5f23e7a059ac91fdd04b409b951ebcc4;hp=aeaf02cdb71ba5c1bc006fbd1a1247a41f1a7001;hpb=136574b880459f4c779c6724a7f6cce359484d11;p=libfirm diff --git a/include/libfirm/irgopt.h b/include/libfirm/irgopt.h index aeaf02cdb..dac94fdda 100644 --- a/include/libfirm/irgopt.h +++ b/include/libfirm/irgopt.h @@ -39,20 +39,22 @@ void local_optimize_node(ir_node *n); * @param irg The graph to be optimized. * * After applying local_optimize_graph() to a IR-graph, Bad nodes - * only occure as predecessor of Block and Phi nodes. + * only occur as predecessor of Block and Phi nodes. */ void local_optimize_graph(ir_graph *irg); /** Applies local optimizations (see iropt.h) to all nodes in the graph. * - * @param irg The graph to be optimized. + * After applying optimize_graph_df() to a IR-graph, Bad nodes + * only occur as predecessor of Block and Phi nodes. * - * After applying local_optimize_graph() to a IR-graph, Bad nodes - * only occure as predecessor of Block and Phi nodes. + * This version uses fixpoint iteration. + * + * @param irg The graph to be optimized. * - * This version used a fixpoint iteration. + * @return non-zero if the optimization could be applied, 0 else */ -void optimize_graph_df(ir_graph *irg); +int optimize_graph_df(ir_graph *irg); /** Performs dead node elimination by copying the ir graph to a new obstack. *