aboutsummaryrefslogtreecommitdiff
path: root/gcc/loop-unswitch.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2012-10-17 21:50:16 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2012-10-17 19:50:16 +0000
commitbf45c4c0c13c77791f8ec5325706baef32ce6644 (patch)
tree0946728541035742ddd41dc817f634a847ab85d2 /gcc/loop-unswitch.c
parentb7442c2fe0e28b96f0789d41132849b7c99402d4 (diff)
downloadgcc-bf45c4c0c13c77791f8ec5325706baef32ce6644.zip
gcc-bf45c4c0c13c77791f8ec5325706baef32ce6644.tar.gz
gcc-bf45c4c0c13c77791f8ec5325706baef32ce6644.tar.bz2
cfgloopmanip.c (copy_loop_info): New function.
* 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. From-SVN: r192543
Diffstat (limited to 'gcc/loop-unswitch.c')
-rw-r--r--gcc/loop-unswitch.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/loop-unswitch.c b/gcc/loop-unswitch.c
index 4107048..25d77da 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);