X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fopt%2Fcritical_edges.c;h=e839f8925c82b4643e62e4b1c85958cd9c587b6d;hb=38249b0311df91904bb3a566a770efe650f40efc;hp=1e2284adf557fc910b071cc6f03d3fcdc3da3d9f;hpb=86f5ed335727adaa9e6550254fb6d2726982bf33;p=libfirm diff --git a/ir/opt/critical_edges.c b/ir/opt/critical_edges.c index 1e2284adf..e839f8925 100644 --- a/ir/opt/critical_edges.c +++ b/ir/opt/critical_edges.c @@ -24,9 +24,7 @@ * Michael Beck * @version $Id$ */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif +#include "config.h" #include "irop_t.h" #include "irnode_t.h" @@ -90,10 +88,10 @@ insert: } /* n is a multi-entry block */ } -void remove_critical_cf_edges(ir_graph *irg) { +void remove_critical_cf_edges_ex(ir_graph *irg, int ignore_exception_edges) { cf_env env; - env.ignore_exc_edges = 1; + env.ignore_exc_edges = (char)ignore_exception_edges; env.changed = 0; irg_block_walk_graph(irg, NULL, walk_critical_cf_edges, &env); @@ -105,3 +103,7 @@ void remove_critical_cf_edges(ir_graph *irg) { set_irg_loopinfo_inconsistent(irg); } } + +void remove_critical_cf_edges(ir_graph *irg) { + remove_critical_cf_edges_ex(irg, 1); +}