aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgloopmanip.h
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2017-07-01 22:46:40 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2017-07-01 20:46:40 +0000
commitaf2bbc51d3879b6e7a03b4dc2d4ab017a98270ba (patch)
tree7af6a2ca2adedc6bef10ea8e3c46425031abf858 /gcc/cfgloopmanip.h
parente39df5466d0cde13fd47e612f20ef2b0ac117e2b (diff)
downloadgcc-af2bbc51d3879b6e7a03b4dc2d4ab017a98270ba.zip
gcc-af2bbc51d3879b6e7a03b4dc2d4ab017a98270ba.tar.gz
gcc-af2bbc51d3879b6e7a03b4dc2d4ab017a98270ba.tar.bz2
cfg.c (scale_bbs_frequencies): New function.
* cfg.c (scale_bbs_frequencies): New function. * cfg.h (scale_bbs_frequencies): Declare it. * cfgloopanal.c (single_likely_exit): Cleanup. * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability as parameter. (scale_loop_profile): Likewise. (loop_version): Likewise. (create_empty_loop_on_edge): Update. * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile, scale_loop_frequencies, scale_loop_profile, loopify, loop_version): Update prototypes. * modulo-sched.c (sms_schedule): Update. * predict.c (unlikely_executed_edge_p): Also check probability. (probably_never_executed_edge_p): Fix typo. * tree-if-conv.c (version_loop_for_if_conversion): Update. * tree-parloops.c (gen_parallel_loop): Update. * tree-ssa-loop-ivcanon.c (try_peel_loop): Update. * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update. * tree-ssa-loop-split.c (split_loop): Update. * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update. * tree-vect-loop-manip.c (vect_do_peeling): Update. (vect_loop_versioning): Update. * tree-vect-loop.c (scale_profile_for_vect_loop): Update. From-SVN: r249872
Diffstat (limited to 'gcc/cfgloopmanip.h')
-rw-r--r--gcc/cfgloopmanip.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/cfgloopmanip.h b/gcc/cfgloopmanip.h
index 3c9536c..2eab70f 100644
--- a/gcc/cfgloopmanip.h
+++ b/gcc/cfgloopmanip.h
@@ -37,14 +37,14 @@ extern edge mfb_kj_edge;
extern bool remove_path (edge, bool * = NULL, bitmap = NULL);
extern void place_new_loop (struct function *, struct loop *);
extern void add_loop (struct loop *, struct loop *);
-extern void scale_loop_frequencies (struct loop *, int, int);
-extern void scale_loop_profile (struct loop *, int, gcov_type);
+extern void scale_loop_frequencies (struct loop *, profile_probability);
+extern void scale_loop_profile (struct loop *, profile_probability, gcov_type);
extern edge create_empty_if_region_on_edge (edge, tree);
extern struct loop *create_empty_loop_on_edge (edge, tree, tree, tree, tree,
tree *, tree *, struct loop *);
extern struct loop *loopify (edge, edge,
basic_block, edge, edge, bool,
- unsigned, unsigned);
+ profile_probability, profile_probability);
extern void unloop (struct loop *, bool *, bitmap);
extern void copy_loop_info (struct loop *loop, struct loop *target);
extern struct loop * duplicate_loop (struct loop *, struct loop *);
@@ -60,6 +60,6 @@ extern void force_single_succ_latches (void);
struct loop * loop_version (struct loop *, void *,
basic_block *,
profile_probability, profile_probability,
- unsigned, unsigned, bool);
+ profile_probability, profile_probability, bool);
#endif /* GCC_CFGLOOPMANIP_H */