diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-24 14:02:12 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-05-24 14:02:12 +0000 |
commit | 96c90e5e0abd447bdcf81f5bcfe76a2a59a9b4dd (patch) | |
tree | 9bb72d30323dfced6a574b1c6fc4064792090034 /gcc/cfghooks.c | |
parent | 7ed90ee0f408293bdd383a39c89af3d26b1bc50c (diff) | |
download | gcc-96c90e5e0abd447bdcf81f5bcfe76a2a59a9b4dd.tar.gz |
PR middle-end/32018
* tree-ssa-threadupdate.c (thread_through_loop_header): Use
set_loop_copy.
(thread_through_all_blocks): Call initialize_original_copy_tables
and free_original_copy_tables.
* cfgloopmanip.c (duplicate_loop, duplicate_loop_to_header_edge):
Use set_loop_copy.
* tree-cfg.c (tree_duplicate_sese_region): Ditto.
* cfghooks.c (duplicate_block): Use get_loop_copy.
* cfg.c: Include cfgloop.h.
(loop_copy): New hash table.
(initialize_original_copy_tables): Initialize loop_copy table.
(free_original_copy_tables): Free loop_copy table.
(copy_original_table_clear, copy_original_table_set,
set_loop_copy, get_loop_copy): New functions.
(set_bb_original, set_bb_copy): Use copy_original_table_set.
* cfgloop.h (struct loop): Remove copy field.
* Makefile.in (cfg.o): Add CFGLOOP_H dependency.
* basic-block.h (set_loop_copy, get_loop_copy): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@125024 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfghooks.c')
-rw-r--r-- | gcc/cfghooks.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/cfghooks.c b/gcc/cfghooks.c index 7f544c3ee3c..51405bb923a 100644 --- a/gcc/cfghooks.c +++ b/gcc/cfghooks.c @@ -928,9 +928,8 @@ duplicate_block (basic_block bb, edge e, basic_block after) if (current_loops != NULL) { struct loop *cloop = bb->loop_father; - if (cloop->copy) - cloop = cloop->copy; - add_bb_to_loop (new_bb, cloop); + struct loop *copy = get_loop_copy (cloop); + add_bb_to_loop (new_bb, copy ? copy : cloop); } return new_bb; |