summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorElias Aebi <elias.aebi@student.kit.edu>2018-04-10 15:49:35 +0200
committerJohannes Bucher <johannes.bucher2@student.kit.edu>2019-01-24 17:42:00 +0100
commita2310f7e32d783773239888fb4746af8428cf15a (patch)
treeadbb63fed1f66f901ea7afdce012cfe83cb7b783
parent99c80d01326d4e4fea2cf34303fefe3dad429e9f (diff)
clean up
-rw-r--r--ir/opt/loop2.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/ir/opt/loop2.c b/ir/opt/loop2.c
index b46bcb4..5ed0a61 100644
--- a/ir/opt/loop2.c
+++ b/ir/opt/loop2.c
@@ -6,19 +6,6 @@
DEBUG_ONLY(static firm_dbg_module_t *dbg = NULL;)
-static void walk_loop(ir_loop *const loop, irg_walk_func *const func, void *const env)
-{
- size_t const n_elements = get_loop_n_elements(loop);
- for (size_t i = 0; i < n_elements; ++i) {
- loop_element const element = get_loop_element(loop, i);
- if (*element.kind == k_ir_node) {
- func(element.node, env);
- } else if (*element.kind == k_ir_loop) {
- walk_loop(element.son, func, env);
- }
- }
-}
-
static bool is_inner_loop(ir_loop *const outer_loop, ir_loop *inner_loop)
{
ir_loop *old_inner_loop;
@@ -320,5 +307,4 @@ void do_loop_unrolling2(ir_graph *const irg)
ir_reserve_resources(irg, IR_RESOURCE_IRN_LINK);
duplicate_innermost_loops(get_irg_loop(irg), true);
ir_free_resources(irg, IR_RESOURCE_IRN_LINK);
- dump_ir_graph(irg, "loop-unrolling");
}