diff options
Diffstat (limited to 'gcc/sese.c')
-rw-r--r-- | gcc/sese.c | 26 |
1 files changed, 13 insertions, 13 deletions
@@ -142,7 +142,7 @@ sese_record_loop (sese region, loop_p loop) return; bitmap_set_bit (SESE_LOOPS (region), loop->num); - VEC_safe_push (loop_p, heap, SESE_LOOP_NEST (region), loop); + SESE_LOOP_NEST (region).safe_push (loop); } /* Build the loop nests contained in REGION. Returns true when the @@ -169,16 +169,16 @@ build_sese_loop_nests (sese region) /* Make sure that the loops in the SESE_LOOP_NEST are ordered. It can be the case that an inner loop is inserted before an outer loop. To avoid this, semi-sort once. */ - FOR_EACH_VEC_ELT (loop_p, SESE_LOOP_NEST (region), i, loop0) + FOR_EACH_VEC_ELT (SESE_LOOP_NEST (region), i, loop0) { - if (VEC_length (loop_p, SESE_LOOP_NEST (region)) == i + 1) + if (SESE_LOOP_NEST (region).length () == i + 1) break; - loop1 = VEC_index (loop_p, SESE_LOOP_NEST (region), i + 1); + loop1 = SESE_LOOP_NEST (region)[i + 1]; if (loop0->num > loop1->num) { - VEC_replace (loop_p, SESE_LOOP_NEST (region), i, loop1); - VEC_replace (loop_p, SESE_LOOP_NEST (region), i + 1, loop0); + SESE_LOOP_NEST (region)[i] = loop1; + SESE_LOOP_NEST (region)[i + 1] = loop0; } } } @@ -319,9 +319,9 @@ new_sese (edge entry, edge exit) SESE_ENTRY (region) = entry; SESE_EXIT (region) = exit; SESE_LOOPS (region) = BITMAP_ALLOC (NULL); - SESE_LOOP_NEST (region) = VEC_alloc (loop_p, heap, 3); + SESE_LOOP_NEST (region).create (3); SESE_ADD_PARAMS (region) = true; - SESE_PARAMS (region) = VEC_alloc (tree, heap, 3); + SESE_PARAMS (region).create (3); return region; } @@ -334,8 +334,8 @@ free_sese (sese region) if (SESE_LOOPS (region)) SESE_LOOPS (region) = BITMAP_ALLOC (NULL); - VEC_free (tree, heap, SESE_PARAMS (region)); - VEC_free (loop_p, heap, SESE_LOOP_NEST (region)); + SESE_PARAMS (region).release (); + SESE_LOOP_NEST (region).release (); XDELETE (region); } @@ -461,7 +461,7 @@ set_rename (htab_t rename_map, tree old_name, tree expr) static bool rename_uses (gimple copy, htab_t rename_map, gimple_stmt_iterator *gsi_tgt, - sese region, loop_p loop, VEC (tree, heap) *iv_map, + sese region, loop_p loop, vec<tree> iv_map, bool *gloog_error) { use_operand_p use_p; @@ -567,7 +567,7 @@ rename_uses (gimple copy, htab_t rename_map, gimple_stmt_iterator *gsi_tgt, static void graphite_copy_stmts_from_block (basic_block bb, basic_block new_bb, htab_t rename_map, - VEC (tree, heap) *iv_map, sese region, + vec<tree> iv_map, sese region, bool *gloog_error) { gimple_stmt_iterator gsi, gsi_tgt; @@ -630,7 +630,7 @@ graphite_copy_stmts_from_block (basic_block bb, basic_block new_bb, edge copy_bb_and_scalar_dependences (basic_block bb, sese region, - edge next_e, VEC (tree, heap) *iv_map, + edge next_e, vec<tree> iv_map, bool *gloog_error) { basic_block new_bb = split_edge (next_e); |