loop-unroll.c (unroll_loop_constant_iterations): Add update of loop->nb_iterations_up...
commit73367f92ad4316a6a149d40e076f6a2d5cd9a022
authorJan Hubicka <jh@suse.cz>
Tue, 9 Oct 2012 13:10:37 +0000 (9 15:10 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 9 Oct 2012 13:10:37 +0000 (9 13:10 +0000)
tree7114ec1f703170ac8194de328dfe6af33d100a7f
parent0b8c30f9aaae52859e12efef359060b8246d6273
loop-unroll.c (unroll_loop_constant_iterations): Add update of loop->nb_iterations_upper_bound I missed in my previous commit...

* loop-unroll.c (unroll_loop_constant_iterations): Add
update of loop->nb_iterations_upper_bound I missed in my previous
commit; use TRUNC_DIV_EXPR instead of FLOOR_DIV_EXPR to divide
iteration count.
(decide_unroll_runtime_iterations): Avoid overflow.
(unroll_loop_runtime_iterations): Use TRUNC_DIV_EXPR instead of
FLOOR_DIV_EXPR to update iteration bounds.
(decide_peel_simple): Avoid integer overflow when deciding
on number of peelings.
(decide_unroll_stupid): Likewise.

From-SVN: r192251
gcc/ChangeLog
gcc/loop-unroll.c