r193246 - in /trunk/gcc: cfgloop.h cfgloopanal....
hubicka@gcc.gnu.org
hubicka@gcc.gnu.org
Tue Nov 6 16:22:00 GMT 2012
Author: hubicka
Date: Tue Nov 6 16:22:45 2012
New Revision: 193246
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193246
Log:
* cfgloopanal.c (get_loop_hot_path): New function.
* tree-ssa-lop-ivcanon.c (struct loop_size): Add CONSTANT_IV,
NUM_NON_PURE_CALLS_ON_HOT_PATH, NUM_PURE_CALLS_ON_HOT_PATH,
NUM_BRANCHES_ON_HOT_PATH.
(tree_estimate_loop_size): Compute the new values.
(try_unroll_loop_completely): Disable unrolling of loops with only
calls or too many branches.
(tree_unroll_loops_completely): Deal also with outer loops of hot loops.
* cfgloop.h (get_loop_hot_path): Declare.
* params.def (PARAM_MAX_PEEL_BRANCHES): New parameters.
* invoke.texi (max-peel-branches): Document.
* gcc.dg/tree-ssa/loop-1.c: Make to look like a good unroling candidate still.
* gcc.dg/tree-ssa/loop-23.c: Likewise.
* gcc.dg/tree-ssa/cunroll-1.c: Unrolling now happens early.
* gcc.dg/tree-prof/unroll-1.c: Remove confused dg-options.
Modified:
trunk/gcc/cfgloop.h
trunk/gcc/cfgloopanal.c
trunk/gcc/doc/invoke.texi
trunk/gcc/params.def
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/tree-prof/unroll-1.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/cunroll-1.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/loop-1.c
trunk/gcc/testsuite/gcc.dg/tree-ssa/loop-23.c
trunk/gcc/tree-ssa-loop-ivcanon.c
More information about the Gcc-cvs
mailing list