Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
authorZdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
Thu, 16 Sep 2004 21:29:43 +0000 (23:29 +0200)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Thu, 16 Sep 2004 21:29:43 +0000 (21:29 +0000)
commit42759f1ea05f7893f3bee4adbab74becf1a9f764
tree5d0332daba22aa87d85d5e5174a5bd80e35b53fc
parent2731cf24d22fbc55453b74a5498f72ce5c41a52b
Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.

* Makefile.in (tree-cfg.o): Add CFGLAYOUT_H dependency.
* basic-block.h (get_dominated_by_region): Declare.
* dominance.c (get_dominated_by_region): New function.
* tree-cfg.c: Include cfglayout.h.
(tree_duplicate_bb): Duplicate also phi nodes.
(struct ssa_name_map_entry): New type.
(add_phi_args_after_copy_bb, add_phi_args_after_copy,
ssa_name_map_entry_hash, ssa_name_map_entry_eq,
allocate_ssa_names, rewrite_to_new_ssa_names_def,
rewrite_to_new_ssa_names_use, rewrite_to_new_ssa_names_bb,
rewrite_to_new_ssa_names, tree_duplicate_sese_region): New functions.
* tree-flow.h (tree_duplicate_sese_region, add_phi_args_after_copy_bb,
add_phi_args_after_copy, rewrite_to_new_ssa_names_bb,
rewrite_to_new_ssa_names, allocate_ssa_names,
rewrite_into_loop_closed_ssa, verify_loop_closed_ssa): Declare.
* tree-ssa-loop-ch.c (duplicate_blocks): Removed.
(copy_loop_headers): Use tree_duplicate_sese_region.

* gcc.dg/tree-ssa/copy-headers.c: Update outcome.

From-SVN: r87614
gcc/ChangeLog
gcc/Makefile.in
gcc/basic-block.h
gcc/dominance.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/copy-headers.c
gcc/tree-cfg.c
gcc/tree-flow.h
gcc/tree-ssa-loop-ch.c