ipa-devirt.c (possible_polymorphic_call_targets): Remove forgotten debug output; canonicalize querries more wtih LTO.

* ipa-devirt.c (possible_polymorphic_call_targets): Remove
	forgotten debug output; canonicalize querries more wtih LTO.

From-SVN: r215577
This commit is contained in:
Jan Hubicka 2014-09-25 05:37:31 +02:00 committed by Jan Hubicka
parent 00d31d5e9f
commit 21a9ce6e0e
2 changed files with 15 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2014-09-24 Jan Hubicka <hubicka@ucw.cz>
* ipa-devirt.c (possible_polymorphic_call_targets): Remove
forgotten debug output; canonicalize querries more wtih LTO.
2014-09-24 Jan Hubicka <hubicka@ucw.cz>
* cgraph.h (class ipa_polymorphic_call_context): Move here from

View File

@ -3726,7 +3726,6 @@ possible_polymorphic_call_targets (tree otr_type,
if ((context.outer_type || context.speculative_outer_type)
&& !context.restrict_to_inner_class (otr_type))
{
fprintf (stderr, "Invalid\n");
if (completep)
*completep = true;
if (cache_token)
@ -3771,6 +3770,16 @@ possible_polymorphic_call_targets (tree otr_type,
}
}
if (in_lto_p)
{
if (context.outer_type != otr_type)
context.outer_type
= get_odr_type (context.outer_type, true)->type;
if (context.speculative_outer_type)
context.speculative_outer_type
= get_odr_type (context.speculative_outer_type, true)->type;
}
/* Lookup cached answer. */
key.type = type;
key.otr_token = otr_token;