re PR rtl-optimization/21254 (Incorrect code with -funroll-loops for multiple targets...
authorZdenek Dvorak <dvorakz@suse.cz>
Fri, 6 May 2005 20:24:00 +0000 (22:24 +0200)
committerZdenek Dvorak <rakdver@gcc.gnu.org>
Fri, 6 May 2005 20:24:00 +0000 (20:24 +0000)
commit4fbe4f91ff05cb6f4f9507fde1b63102a117e40f
treed915060a51b36c45e01302a15b2e5cc3e27f761c
parent6245372caaee11600cf7aab808ff30bfaccaf4e8
re PR rtl-optimization/21254 (Incorrect code with -funroll-loops for multiple targets with same code)

PR rtl-optimization/21254
* loop-iv.c (iv_number_of_iterations): Simplify infiniteness
assumptions for loops that otherwise do not roll.
(find_simple_exit): Prefer # of iterations that is guaranteed
not to be infinite.
* loop-unroll.c (decide_peel_once_rolling,
decide_peel_completely): Check whether the loop is infinite.

From-SVN: r99332
gcc/ChangeLog
gcc/loop-iv.c
gcc/loop-unroll.c