diff options
author | Jan Hubicka <jh@suse.cz> | 2013-01-09 22:29:07 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2013-01-09 21:29:07 +0000 |
commit | 7770c9e9060766568d00815506142658e703f629 (patch) | |
tree | c77375c482da17eb65c2be59bfe9f091ce996e8d /gcc/cfgloopmanip.c | |
parent | a19b1432574df7f3c59b9668adc56141db4a3333 (diff) | |
download | gcc-7770c9e9060766568d00815506142658e703f629.tar.gz |
re PR tree-optimization/55569 (ICE: in check_probability, at basic-block.h:944 with -ftree-vectorize)
PR tree-optimization/55569
* cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
* cfgloop.h (scale_loop_profile): Likewise.
From-SVN: r195067
Diffstat (limited to 'gcc/cfgloopmanip.c')
-rw-r--r-- | gcc/cfgloopmanip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cfgloopmanip.c b/gcc/cfgloopmanip.c index 2528ec50d39..af29677da3c 100644 --- a/gcc/cfgloopmanip.c +++ b/gcc/cfgloopmanip.c @@ -481,7 +481,7 @@ scale_loop_frequencies (struct loop *loop, int num, int den) to iterate too many times. */ void -scale_loop_profile (struct loop *loop, int scale, int iteration_bound) +scale_loop_profile (struct loop *loop, int scale, gcov_type iteration_bound) { gcov_type iterations = expected_loop_iterations_unbounded (loop); edge e; @@ -491,7 +491,7 @@ scale_loop_profile (struct loop *loop, int scale, int iteration_bound) fprintf (dump_file, ";; Scaling loop %i with scale %f, " "bounding iterations to %i from guessed %i\n", loop->num, (double)scale / REG_BR_PROB_BASE, - iteration_bound, (int)iterations); + (int)iteration_bound, (int)iterations); /* See if loop is predicted to iterate too many times. */ if (iteration_bound && iterations > 0 |