diff options
author | Richard Guenther <rguenth@tat.physik.uni-tuebingen.de> | 2005-03-22 20:53:40 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-03-22 20:53:40 +0000 |
commit | e5c4f28a6c44485134c426d5ad4ba3f90cc26a41 (patch) | |
tree | e6caff86555ce9f9639013c3cd82b4c469828776 /gcc/tree-inline.h | |
parent | b360e193505ff0cd9ee72bdb8e232654e625731b (diff) | |
download | gcc-e5c4f28a6c44485134c426d5ad4ba3f90cc26a41.zip gcc-e5c4f28a6c44485134c426d5ad4ba3f90cc26a41.tar.gz gcc-e5c4f28a6c44485134c426d5ad4ba3f90cc26a41.tar.bz2 |
cgraphunit.c (cgraph_estimate_size_after_inlining): Compute call cost based on argument sizes.
* cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
call cost based on argument sizes.
(cgraph_mark_inline_edge): Avoid inline unit from shringking by
inlining.
* params.def: (max-inline-inssn-single): Set to 450.
(max-inline-insns-auto): Set to 90.
(max-inline-insns-recursive): Set to 450
(max-inline-insns-recursive-auto): Set to 450.
(large-function-insns): Set to 2700.
(inline-call-cost): New parameter.
* tree-inline.c (estimate_move_cost): New function.
(estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
for non-gimple-regs, set cost to 0 for gimple-regs. Compute call size
based on arguments.
* tree-inline.h (estimate_move_cost): Declare.
* invoke.texi: (max-inline-inssn-single): Change default to 450.
(max-inline-insns-auto): Change default to 90.
(max-inline-insns-recursive): Change default to 450
(max-inline-insns-recursive-auto): Change default to 450.
(large-function-insns): Change default to 2700.
(inline-call-cost): Document new parameter.
* gcc.dg/winline-6.c: Modify so inlined function have nonzero cost.
Co-Authored-By: Jan Hubicka <jh@suse.cz>
From-SVN: r96892
Diffstat (limited to 'gcc/tree-inline.h')
-rw-r--r-- | gcc/tree-inline.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-inline.h b/gcc/tree-inline.h index a8e9de6..467f6bb 100644 --- a/gcc/tree-inline.h +++ b/gcc/tree-inline.h @@ -29,6 +29,7 @@ bool tree_inlinable_function_p (tree); tree copy_tree_r (tree *, int *, void *); void clone_body (tree, tree, void *); tree save_body (tree, tree *, tree *); +int estimate_move_cost (tree type); int estimate_num_insns (tree expr); /* 0 if we should not perform inlining. |