aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloop.h
diff options
context:
space:
mode:
authorZdenek Dvorak <rakdver@gcc.gnu.org>2007-01-03 02:29:00 +0000
committerZdenek Dvorak <rakdver@gcc.gnu.org>2007-01-03 02:29:00 +0000
commit03cb2019ff14e03b2256bc6dca8a1bd3ec2bede9 (patch)
tree65c401413cfba6d2049e2a002755074729d4e079 /gcc/cfgloop.h
parent7a388ee4530a1924bd3e0100078e5179bf5ee18c (diff)
downloadgcc-03cb2019ff14e03b2256bc6dca8a1bd3ec2bede9.zip
gcc-03cb2019ff14e03b2256bc6dca8a1bd3ec2bede9.tar.gz
gcc-03cb2019ff14e03b2256bc6dca8a1bd3ec2bede9.tar.bz2
loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
* loop-unswitch.c (unswitch_loop): Pass probabilities to loopify. * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities to loop_version. * cfgloopmanip.c (scale_loop_frequencies): Export. (loopify): Scale the frequencies by prescribed coefficients. (set_zero_probability): New function. (duplicate_loop_to_header_edge): Improve updating of frequencies. (lv_adjust_loop_entry_edge, loop_version): Set probabilities and frequencies according to arguments. * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities correctly. * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up. * modulo-sched.c (sms_schedule): Set probabilities for entering versioned loop correctly. * tree-vect-transform.c (vect_transform_loop): Ditto. * cfgloop.h (loopify, loop_version): Declaration changed. (scale_loop_frequencies): Declared. * gcc.dg/tree-ssa/update-unroll-1.c: New test. * gcc.dg/tree-ssa/update-unswitch-1.c: New test. From-SVN: r120378
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r--gcc/cfgloop.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h
index aa12dbf..19fc93f 100644
--- a/gcc/cfgloop.h
+++ b/gcc/cfgloop.h
@@ -254,10 +254,12 @@ extern bool duplicate_loop_to_header_edge (struct loop *, edge,
unsigned, sbitmap, edge,
VEC (edge, heap) **, int);
extern struct loop *loopify (edge, edge,
- basic_block, edge, edge, bool);
+ basic_block, edge, edge, bool,
+ unsigned, unsigned);
struct loop * loop_version (struct loop *, void *,
- basic_block *, bool);
+ basic_block *, unsigned, unsigned, unsigned, bool);
extern bool remove_path (edge);
+void scale_loop_frequencies (struct loop *, int, int);
/* Induction variable analysis. */