projects
/
libfirm
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove unused variable.
[libfirm]
/
ir
/
opt
/
critical_edges.c
diff --git
a/ir/opt/critical_edges.c
b/ir/opt/critical_edges.c
index
1e2284a
..
e839f89
100644
(file)
--- a/
ir/opt/critical_edges.c
+++ b/
ir/opt/critical_edges.c
@@
-24,9
+24,7
@@
* Michael Beck
* @version $Id$
*/
* Michael Beck
* @version $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#include "irop_t.h"
#include "irnode_t.h"
#include "irop_t.h"
#include "irnode_t.h"
@@
-90,10
+88,10
@@
insert:
} /* n is a multi-entry block */
}
} /* 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;
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);
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);
}
}
set_irg_loopinfo_inconsistent(irg);
}
}
+
+void remove_critical_cf_edges(ir_graph *irg) {
+ remove_critical_cf_edges_ex(irg, 1);
+}