From a7a296abd331696c8be3c1f3e00d3fc74b153917 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Sun, 6 Nov 2011 13:02:15 +0000 Subject: 2011-11-6 Richard Guenther * ipa-prop.c (ipa_modify_call_arguments): Re-compute inlinable flag. From-SVN: r181027 --- gcc/ipa-prop.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gcc/ipa-prop.c') diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 0ca3f3a..7946aca 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -2568,8 +2568,11 @@ ipa_modify_call_arguments (struct cgraph_edge *cs, gimple stmt, gimple_set_block (new_stmt, gimple_block (stmt)); if (gimple_has_location (stmt)) gimple_set_location (new_stmt, gimple_location (stmt)); - gimple_call_copy_flags (new_stmt, stmt); gimple_call_set_chain (new_stmt, gimple_call_chain (stmt)); + gimple_call_copy_flags (new_stmt, stmt); + if (gimple_call_cannot_inline_p (stmt)) + gimple_call_set_cannot_inline + (new_stmt, !gimple_check_call_matching_types (new_stmt, callee_decl)); if (dump_file && (dump_flags & TDF_DETAILS)) { -- cgit v1.1