-/**
- * Mature all loops by removing the flexible arrays of a loop.
- */
-static void mature_loops(ir_loop *loop) {
- loop_element *new_children = DUP_ARR_D(loop_element, outermost_ir_graph->obst, loop->children);
- DEL_ARR_F(loop->children);
- loop->children = new_children;
-
- if (loop->n_sons > 0) {
- /* we have child loops, mature them */
- int i;
-
- for (i = ARR_LEN(new_children) - 1; i >= 0; --i) {
- loop_element child = new_children[i];
-
- if (*child.kind == k_ir_loop) {
- mature_loops(child.son);
- }
- }
- }
-}
-