diff options
author | Jan Hubicka <jh@suse.cz> | 2010-11-10 03:35:19 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-11-10 02:35:19 +0000 |
commit | 9bb2f479f391114f46f6cb5d957b274ff0066135 (patch) | |
tree | c179f7d98e8b98e288509bbe8a5cf077dada2455 /gcc/tree-inline.h | |
parent | b8cbdff525821c2ca8aa8758ed48d50f101138db (diff) | |
download | gcc-9bb2f479f391114f46f6cb5d957b274ff0066135.zip gcc-9bb2f479f391114f46f6cb5d957b274ff0066135.tar.gz gcc-9bb2f479f391114f46f6cb5d957b274ff0066135.tar.bz2 |
re PR tree-optimization/40436 (0.5% code size regression caused by r147852)
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.
From-SVN: r166517
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 a8a33aa..fa03537 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. */ |