ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling of ADR_EXPRs.

2011-04-15  Martin Jambor  <mjambor@suse.cz>

	* ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
	of ADR_EXPRs.

From-SVN: r172515
This commit is contained in:
Martin Jambor 2011-04-15 20:38:05 +02:00 committed by Martin Jambor
parent 8e5837bc11
commit dee74c3436
2 changed files with 5 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2011-04-15 Martin Jambor <mjambor@suse.cz>
* ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
of ADR_EXPRs.
2011-04-15 Martin Jambor <mjambor@suse.cz>
PR middle-end/48601

View File

@ -1383,18 +1383,6 @@ ipa_analyze_virtual_call_uses (struct cgraph_node *node,
if (!flag_devirtualize)
return;
if (TREE_CODE (obj) == ADDR_EXPR)
{
do
{
obj = TREE_OPERAND (obj, 0);
}
while (TREE_CODE (obj) == COMPONENT_REF);
if (TREE_CODE (obj) != MEM_REF)
return;
obj = TREE_OPERAND (obj, 0);
}
if (TREE_CODE (obj) != SSA_NAME
|| !SSA_NAME_IS_DEFAULT_DEF (obj))
return;