diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-10 02:35:19 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2010-11-10 02:35:19 +0000 |
commit | 958b3c8ac82ed1a8c30d505430babba40a3e132e (patch) | |
tree | c179f7d98e8b98e288509bbe8a5cf077dada2455 /gcc/tree-inline.h | |
parent | a25b333d8554e5937be5adc417f6300d4d62f1e4 (diff) | |
download | gcc-958b3c8ac82ed1a8c30d505430babba40a3e132e.tar.gz |
PR tree-optimization/40436
* ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
* tree-inline.c (estimate_num_insns): Inexpensive builtins are like
normal instructions; be sure bultin is not implemented in this file;
compute non-zero return cost.
(init_inline_once): Reduce builtin_call_cost to 1; set return cost.
* tree-inline.h (eni_weights_d): Add return cost.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166517 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-inline.h')
-rw-r--r-- | gcc/tree-inline.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-inline.h b/gcc/tree-inline.h index a8a33aa84d9..fa0353735a7 100644 --- a/gcc/tree-inline.h +++ b/gcc/tree-inline.h @@ -144,6 +144,9 @@ typedef struct eni_weights_d /* Cost for omp construct. */ unsigned omp_cost; + /* Cost of return. */ + unsigned return_cost; + /* True when time of statemnt should be estimated. Thus i.e cost of switch statement is logarithmic rather than linear in number of cases. */ |