diff options
author | Jan Hubicka <jh@suse.cz> | 2006-11-28 11:53:16 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2006-11-28 10:53:16 +0000 |
commit | ff28a94d32c8e9263b842211c49fdbe7dfb227ee (patch) | |
tree | 9bb94288fc5fbb8cdce4a230d3d4b48f6137378e /gcc/params.def | |
parent | 00df958942c2e5805cf3ab236da2725f30fee80d (diff) | |
download | gcc-ff28a94d32c8e9263b842211c49fdbe7dfb227ee.zip gcc-ff28a94d32c8e9263b842211c49fdbe7dfb227ee.tar.gz gcc-ff28a94d32c8e9263b842211c49fdbe7dfb227ee.tar.bz2 |
invoke.texi (large-stack-frame, [...]): New params.
* invoke.texi (large-stack-frame, large-stack-frame-growth): New params.
* cgraph.c (dump_cgraph_node): Dump stack usage.
* cgraph.h (cgraph_local_info): Add estimated_self_stack_size.
(cgraph_global_info): Add estimated_stack_size and stack_frame_offset.
* cgraphunit.c (cgraph_analyze_function): Analyze stack sizes.
* ipa-inline.c (cgraph_clone_inlined_nodes): Propagate stack usage.
(cgraph_check_inline_limits): Limit stack growth.
* cfgexpand.c: Include tree-inline.h.
(account_stack_vars): New function.
(expand_one_var): New param to just account the stack; return estimated
size.
(expand_used_vars_for_block): Update call of expand_one_var.
(account_used_vars_for_block): New function.
(estimated_stack_frame_size): Likewise.
(init_vars_expansion, fini_vars_expansion): Break out from..
(expand_used_vars): ... here.
* tree-inline.h (estimated_stack_frame_size): Declare.
* params.def (PARAM_LARGE_STACK_FRAME, PARAM_STACK_FRAME_GROWTH): New.
From-SVN: r119281
Diffstat (limited to 'gcc/params.def')
-rw-r--r-- | gcc/params.def | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def index 764b3c4..142b19e 100644 --- a/gcc/params.def +++ b/gcc/params.def @@ -198,6 +198,14 @@ DEFPARAM(PARAM_INLINE_CALL_COST, "inline-call-cost", "expense of call operation relative to ordinary arithmetic operations", 16, 0, 0) +DEFPARAM(PARAM_LARGE_STACK_FRAME, + "large-stack-frame", + "The size of stack frame to be considered large", + 256, 0, 0) +DEFPARAM(PARAM_STACK_FRAME_GROWTH, + "large-stack-frame-growth", + "Maximal stack frame growth due to inlining (in percent)", + 1000, 0, 0) /* The GCSE optimization will be disabled if it would require significantly more memory than this value. */ |