summaryrefslogtreecommitdiffstats
path: root/gcc/cfgloopmanip.c
diff options
context:
space:
mode:
authorrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-24 14:02:12 +0000
committerrakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4>2007-05-24 14:02:12 +0000
commit96c90e5e0abd447bdcf81f5bcfe76a2a59a9b4dd (patch)
tree9bb72d30323dfced6a574b1c6fc4064792090034 /gcc/cfgloopmanip.c
parent7ed90ee0f408293bdd383a39c89af3d26b1bc50c (diff)
downloadppe42-gcc-96c90e5e0abd447bdcf81f5bcfe76a2a59a9b4dd.tar.gz
ppe42-gcc-96c90e5e0abd447bdcf81f5bcfe76a2a59a9b4dd.zip
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/cfgloopmanip.c')
-rw-r--r--gcc/cfgloopmanip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c
index 1fadbb4356d..99b41d7ceae 100644
--- a/gcc/cfgloopmanip.c
+++ b/gcc/cfgloopmanip.c
@@ -653,7 +653,7 @@ duplicate_loop (struct loop *loop, struct loop *target)
place_new_loop (cloop);
/* Mark the new loop as copy of LOOP. */
- loop->copy = cloop;
+ set_loop_copy (loop, cloop);
/* Add it to target. */
flow_loop_tree_node_add (target, cloop);
@@ -917,7 +917,7 @@ duplicate_loop_to_header_edge (struct loop *loop, edge e,
for (aloop = loop->inner, i = 0; aloop; aloop = aloop->next, i++)
orig_loops[i] = aloop;
- loop->copy = target;
+ set_loop_copy (loop, target);
first_active = XNEWVEC (basic_block, n);
if (is_latch)
OpenPOWER on IntegriCloud