From 4dd09cd053d8de897578324de5d26399126ad817 Mon Sep 17 00:00:00 2001 From: rth Date: Fri, 17 Jun 2005 22:05:47 +0000 Subject: * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Use initialize_original_copy_tables and free_original_copy_tables. (vect_do_peeling_for_alignment): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@101140 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/tree-vect-transform.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'gcc/tree-vect-transform.c') diff --git a/gcc/tree-vect-transform.c b/gcc/tree-vect-transform.c index 116f01a5fe4..4695e54ead4 100644 --- a/gcc/tree-vect-transform.c +++ b/gcc/tree-vect-transform.c @@ -1765,7 +1765,6 @@ static void vect_do_peeling_for_loop_bound (loop_vec_info loop_vinfo, tree *ratio, struct loops *loops) { - tree ni_name, ratio_mult_vf_name; struct loop *loop = LOOP_VINFO_LOOP (loop_vinfo); struct loop *new_loop; @@ -1778,6 +1777,8 @@ vect_do_peeling_for_loop_bound (loop_vec_info loop_vinfo, tree *ratio, if (vect_print_dump_info (REPORT_DETAILS, UNKNOWN_LOC)) fprintf (vect_dump, "=== vect_do_peeling_for_loop_bound ==="); + initialize_original_copy_tables (); + /* Generate the following variables on the preheader of original loop: ni_name = number of iteration the original loop executes @@ -1816,7 +1817,7 @@ vect_do_peeling_for_loop_bound (loop_vec_info loop_vinfo, tree *ratio, /* After peeling we have to reset scalar evolution analyzer. */ scev_reset (); - return; + free_original_copy_tables (); } @@ -2000,6 +2001,8 @@ vect_do_peeling_for_alignment (loop_vec_info loop_vinfo, struct loops *loops) if (vect_print_dump_info (REPORT_DETAILS, UNKNOWN_LOC)) fprintf (vect_dump, "=== vect_do_peeling_for_alignment ==="); + initialize_original_copy_tables (); + ni_name = vect_build_loop_niters (loop_vinfo); niters_of_prolog_loop = vect_gen_niters_for_prolog_loop (loop_vinfo, ni_name); @@ -2023,7 +2026,7 @@ vect_do_peeling_for_alignment (loop_vec_info loop_vinfo, struct loops *loops) /* After peeling we have to reset scalar evolution analyzer. */ scev_reset (); - return; + free_original_copy_tables (); } -- cgit v1.2.1