diff options
author | Richard Guenther <rguenther@suse.de> | 2011-11-06 13:02:15 +0000 |
---|---|---|
committer | Richard Guenther <rguenther@suse.de> | 2011-11-06 13:02:15 +0000 |
commit | ed8bd606502c7432e9bd3a532553e8b9b349901f (patch) | |
tree | 80c92726c6812f1bc8a02ca1e36f38a94c96b1fb /gcc/ipa-prop.c | |
parent | 2a85c2016691a56dfb6f13cc07355b32f06f4c8d (diff) |
2011-11-6 Richard Guenther <rguenther@suse.de>
* ipa-prop.c (ipa_modify_call_arguments): Re-compute
inlinable flag.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@181027 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-prop.c')
-rw-r--r-- | gcc/ipa-prop.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 0ca3f3a5f83..7946aca0bff 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)) { |