diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-17 19:50:16 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-10-17 19:50:16 +0000 |
commit | efa7c5bd00b742436264f1da72451c1c6dde0c6e (patch) | |
tree | 0946728541035742ddd41dc817f634a847ab85d2 /gcc/loop-unswitch.c | |
parent | c790d986e9dd6ed28f63452faf024e049a323546 (diff) | |
download | gcc-efa7c5bd00b742436264f1da72451c1c6dde0c6e.tar.gz |
* cfgloopmanip.c (copy_loop_info): New function.
(duplicate_loop): Use it.
(loop_version): Use it.
* loop-unswitch.c (unswitch_loop): Use it.
* cfgloop.h (copy_loop_info): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@192543 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r-- | gcc/loop-unswitch.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c index 4107048de01..25d77dab22f 100644 --- a/gcc/loop-unswitch.c +++ b/gcc/loop-unswitch.c @@ -454,6 +454,7 @@ unswitch_loop (struct loop *loop, basic_block unswitch_on, rtx cond, rtx cinsn) BRANCH_EDGE (switch_bb), FALLTHRU_EDGE (switch_bb), true, prob, REG_BR_PROB_BASE - prob); + copy_loop_info (loop, nloop); /* Remove branches that are now unreachable in new loops. */ remove_path (true_edge); remove_path (false_edge); |