]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/44688 (Excessive code-size growth at -O3)
authorRichard Guenther <rguenther@suse.de>
Thu, 19 Apr 2012 08:51:50 +0000 (08:51 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 19 Apr 2012 08:51:50 +0000 (08:51 +0000)
commitdaa573866d655917328caec7debf2175e2a566f8
tree92d23c442fd6840815fd73d552e519a3d4bac434
parent1295401bcf45076d15e73746dd52ed2127d47588
re PR tree-optimization/44688 (Excessive code-size growth at -O3)

2012-04-19  Richard Guenther  <rguenther@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.

From-SVN: r186585
gcc/ChangeLog
gcc/loop-iv.c
gcc/loop-unroll.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/var-expand1.c