[Bug tree-optimization/44688] [4.6/4.7/4.8 Regression] Excessive code-size growth at -O3
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Apr 19 08:53:00 GMT 2012
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 <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.
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
More information about the Gcc-bugs
mailing list