From 4851c80ce8de18896dc5c4b1b023afa8456736ba Mon Sep 17 00:00:00 2001 From: Xionghu Luo Date: Mon, 1 Nov 2021 00:14:01 -0500 Subject: Rename duplicate_loop_to_header_edge to duplicate_loop_body_to_header_edge gcc/ChangeLog: 2021-11-01 Xionghu Luo * cfghooks.c (cfg_hook_duplicate_loop_to_header_edge): Rename duplicate_loop_to_header_edge to duplicate_loop_body_to_header_edge. (cfg_hook_duplicate_loop_body_to_header_edge): Likewise. * cfghooks.h (struct cfg_hooks): Likewise. (cfg_hook_duplicate_loop_body_to_header_edge): Likewise. * cfgloopmanip.c (duplicate_loop_body_to_header_edge): Likewise. (clone_loop_to_header_edge): Likewise. * cfgloopmanip.h (duplicate_loop_body_to_header_edge): Likewise. * cfgrtl.c (struct cfg_hooks): Likewise. * doc/loop.texi: Likewise. * loop-unroll.c (unroll_loop_constant_iterations): Likewise. (unroll_loop_runtime_iterations): Likewise. (unroll_loop_stupid): Likewise. (apply_opt_in_copies): Likewise. * tree-cfg.c (struct cfg_hooks): Likewise. * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise. (try_peel_loop): Likewise. * tree-ssa-loop-manip.c (copy_phi_node_args): Likewise. (gimple_duplicate_loop_body_to_header_edge): Likewise. (tree_transform_and_unroll_loop): Likewise. * tree-ssa-loop-manip.h (gimple_duplicate_loop_body_to_header_edge): Likewise. --- gcc/tree-ssa-loop-ivcanon.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) (limited to 'gcc/tree-ssa-loop-ivcanon.c') diff --git a/gcc/tree-ssa-loop-ivcanon.c b/gcc/tree-ssa-loop-ivcanon.c index 8d8791f..be533b0 100644 --- a/gcc/tree-ssa-loop-ivcanon.c +++ b/gcc/tree-ssa-loop-ivcanon.c @@ -903,11 +903,10 @@ try_unroll_loop_completely (class loop *loop, if (may_be_zero) bitmap_clear_bit (wont_exit, 1); - if (!gimple_duplicate_loop_to_header_edge (loop, loop_preheader_edge (loop), - n_unroll, wont_exit, - exit, &edges_to_remove, - DLTHE_FLAG_UPDATE_FREQ - | DLTHE_FLAG_COMPLETTE_PEEL)) + if (!gimple_duplicate_loop_body_to_header_edge ( + loop, loop_preheader_edge (loop), n_unroll, wont_exit, exit, + &edges_to_remove, + DLTHE_FLAG_UPDATE_FREQ | DLTHE_FLAG_COMPLETTE_PEEL)) { free_original_copy_tables (); if (dump_file && (dump_flags & TDF_DETAILS)) @@ -1094,10 +1093,9 @@ try_peel_loop (class loop *loop, } if (may_be_zero) bitmap_clear_bit (wont_exit, 1); - if (!gimple_duplicate_loop_to_header_edge (loop, loop_preheader_edge (loop), - npeel, wont_exit, - exit, &edges_to_remove, - DLTHE_FLAG_UPDATE_FREQ)) + if (!gimple_duplicate_loop_body_to_header_edge ( + loop, loop_preheader_edge (loop), npeel, wont_exit, exit, + &edges_to_remove, DLTHE_FLAG_UPDATE_FREQ)) { free_original_copy_tables (); return false; -- cgit v1.1