diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-28 10:53:16 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-11-28 10:53:16 +0000 |
commit | 5a02d67bef967122bde442b874452e3bb1c96791 (patch) | |
tree | 9bb94288fc5fbb8cdce4a230d3d4b48f6137378e /gcc/cgraph.h | |
parent | 310615899626b73c22a7a234e3e5add92ae624ec (diff) | |
download | gcc-5a02d67bef967122bde442b874452e3bb1c96791.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@119281 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cgraph.h')
-rw-r--r-- | gcc/cgraph.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/cgraph.h b/gcc/cgraph.h index 668d7a7b08b..b7aa81bcd16 100644 --- a/gcc/cgraph.h +++ b/gcc/cgraph.h @@ -51,6 +51,9 @@ enum availability struct cgraph_local_info GTY(()) { + /* Estiimated stack frame consumption by the function. */ + HOST_WIDE_INT estimated_self_stack_size; + /* Size of the function before inlining. */ int self_insns; @@ -88,6 +91,11 @@ struct cgraph_local_info GTY(()) struct cgraph_global_info GTY(()) { + /* Estimated stack frame consumption by the function. */ + HOST_WIDE_INT estimated_stack_size; + /* Expected offset of the stack frame of inlined function. */ + HOST_WIDE_INT stack_frame_offset; + /* For inline clones this points to the function they will be inlined into. */ struct cgraph_node *inlined_to; |