aboutsummaryrefslogtreecommitdiff
path: root/gcc/ipa-split.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-07-24 08:08:26 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-07-24 08:08:26 +0000
commitb4c9af965f74fe9f67adf9e0343e4aec41da6c8e (patch)
treed651168c51e1b1aa9a90adba74a92d53e8a5798c /gcc/ipa-split.c
parent997ef9e7389f4962edc8c504a3d9753ab806ed6f (diff)
downloadgcc-b4c9af965f74fe9f67adf9e0343e4aec41da6c8e.zip
gcc-b4c9af965f74fe9f67adf9e0343e4aec41da6c8e.tar.gz
gcc-b4c9af965f74fe9f67adf9e0343e4aec41da6c8e.tar.bz2
tree-inline.h (estimate_move_cost): Add speed_p parameter.
2014-07-24 Richard Biener <rguenther@suse.de> * tree-inline.h (estimate_move_cost): Add speed_p parameter. * tree-inline.c (estimate_move_cost): Add speed_p parameter and adjust MOVE_RATIO query accordingly. (estimate_num_insns): Adjust callers. * ipa-prop.c (ipa_populate_param_decls): Likewise. * ipa-cp.c (gather_context_independent_values, estimate_local_effects): Likewise. * ipa-split.c (consider_split): Likewise. From-SVN: r212970
Diffstat (limited to 'gcc/ipa-split.c')
-rw-r--r--gcc/ipa-split.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/ipa-split.c b/gcc/ipa-split.c
index 0a30b3f..cba0309 100644
--- a/gcc/ipa-split.c
+++ b/gcc/ipa-split.c
@@ -488,13 +488,14 @@ consider_split (struct split_point *current, bitmap non_ssa_vars,
SSA_NAME_VERSION (ddef)))
{
if (!VOID_TYPE_P (TREE_TYPE (parm)))
- call_overhead += estimate_move_cost (TREE_TYPE (parm));
+ call_overhead += estimate_move_cost (TREE_TYPE (parm), false);
num_args++;
}
}
}
if (!VOID_TYPE_P (TREE_TYPE (current_function_decl)))
- call_overhead += estimate_move_cost (TREE_TYPE (current_function_decl));
+ call_overhead += estimate_move_cost (TREE_TYPE (current_function_decl),
+ false);
if (current->split_size <= call_overhead)
{