From: Martin Jambor Date: Fri, 15 Apr 2011 18:38:05 +0000 (+0200) Subject: ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling of ADR_EXPRs. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dee74c343634bec2e6909f197ce0b669820acc56;p=gcc.git ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling of ADR_EXPRs. 2011-04-15 Martin Jambor * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling of ADR_EXPRs. From-SVN: r172515 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 85af6832fc8..41877aa1687 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2011-04-15 Martin Jambor + + * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling + of ADR_EXPRs. + 2011-04-15 Martin Jambor PR middle-end/48601 diff --git a/gcc/ipa-prop.c b/gcc/ipa-prop.c index 9a50ce2c007..be223cc7925 100644 --- a/gcc/ipa-prop.c +++ b/gcc/ipa-prop.c @@ -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;