diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-19 20:46:15 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-01-19 20:46:15 +0000 |
commit | ae1b96a8a3584107edab2f6cea7d7b309138358f (patch) | |
tree | 081c4eec322dcbdcd8274dbd27ce485a10a634ed | |
parent | e7d46f62f40c9b13a7fd9acdd35e98aa0bd703de (diff) | |
download | gcc-ae1b96a8a3584107edab2f6cea7d7b309138358f.tar.gz |
PR ipa/64218
* ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
whether function is an alias.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@219859 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-inline.c | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 25c3bc1b2e5..ea61db20226 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2015-01-19 Jan Hubicka <hubicka@ucw.cz> + PR ipa/64218 + * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check + whether function is an alias. + +2015-01-19 Jan Hubicka <hubicka@ucw.cz> + * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless cases. diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index f270cfa58f3..6bfb1ea2aa4 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -866,7 +866,8 @@ want_inline_function_to_all_callers_p (struct cgraph_node *node, bool cold) { bool has_hot_call = false; - if (node->ultimate_alias_target () != node) + /* Aliases gets inlined along with the function they alias. */ + if (node->alias) return false; /* Already inlined? */ if (node->global.inlined_to) |