diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-20 13:19:59 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-20 13:19:59 +0000 |
commit | a42877ad844b48f45b96abf81a7b51457326a1e3 (patch) | |
tree | 5a59e9c33670e77c59db2200ae49b413088be4c9 /gcc/cfgloop.h | |
parent | 22e0b7be8596b0d40c6f856dd08c5dcda94bd2cd (diff) | |
download | gcc-a42877ad844b48f45b96abf81a7b51457326a1e3.tar.gz |
* cfgloop.h (expected_loop_iterations_unbounded,
expected_loop_iterations): Unconstify.
* cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
profile with known upper bound; return 3 when profile is absent.
(expected_loop_iterations): Update.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@236511 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cfgloop.h')
-rw-r--r-- | gcc/cfgloop.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index 54e738f20f4..173fda84ba4 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -316,8 +316,8 @@ extern void verify_loop_structure (void); /* Loop analysis. */ extern bool just_once_each_iteration_p (const struct loop *, const_basic_block); -gcov_type expected_loop_iterations_unbounded (const struct loop *); -extern unsigned expected_loop_iterations (const struct loop *); +gcov_type expected_loop_iterations_unbounded (struct loop *); +extern unsigned expected_loop_iterations (struct loop *); extern rtx doloop_condition_get (rtx); void mark_loop_for_removal (loop_p); |