http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44688

--- Comment #9 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-04-19 
08:51:57 UTC ---
Author: rguenth
Date: Thu Apr 19 08:51:50 2012
New Revision: 186585

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=186585
Log:
2012-04-19  Richard Guenther  <rguent...@suse.de>

    PR rtl-optimization/44688
    * loop-iv.c (determine_max_iter): Only return max_iter.
    (iv_number_of_iterations): Also use the recorded loop bound
    on the maximum number of iterations.
    * loop-unroll.c (decide_unroll_runtime_iterations): Use
    max_iter to avoid unrolling loops that do not roll.
    (decide_unroll_stupid): Likewise.

    * gcc.dg/var-expand1.c: Increase array size to make unrolling
    possibly profitable.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/loop-iv.c
    trunk/gcc/loop-unroll.c
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gcc.dg/var-expand1.c

Reply via email to