OSDN Git Service

* gcc.dg/tree-ssa/loop-36.c: Reduce amount of iterations to 2 so unrolling
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 May 2009 14:05:28 +0000 (14:05 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 12 May 2009 14:05:28 +0000 (14:05 +0000)
commit94e6e3591e3deb7f88b040a7f39d7acdb39e6c20
tree63fd58b98168fb3c755ec6145a978b20b41a8e2a
parentd6b07704ce320035dcb03a7f7eda260a67b5d506
* gcc.dg/tree-ssa/loop-36.c: Reduce amount of iterations to 2 so unrolling
still happens.
* gcc.dg/ipa/ipacost-1.c: Prevent inlining
* gcc.dg/ipa/ipacost-2.c: Likewise.
* gcc.dg/vect/slp-3.c: Loop is no longer unrolled.

* tree-inline.c (estimate_operator_cost): Add operands;
when division happens by constant, it is cheap.
(estimate_num_insns): Loads and stores are not having cost of 0;
EH magic stuff is cheap; when computing runtime cost of switch,
use log2 base of amount of its cases; builtin_expect has cost of 0;
compute cost for moving return value of call.
(init_inline_once): Initialize time_based flags.
* tree-inline.h (eni_weights_d): Add time_based flag.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147436 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/ipacost-1.c
gcc/testsuite/gcc.dg/ipa/ipacost-2.c
gcc/testsuite/gcc.dg/tree-ssa/loop-36.c
gcc/testsuite/gcc.dg/vect/slp-3.c
gcc/tree-inline.c
gcc/tree-inline.h