From dee74c343634bec2e6909f197ce0b669820acc56 Mon Sep 17 00:00:00 2001 From: Martin Jambor Date: Fri, 15 Apr 2011 20:38:05 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/ipa-prop.c | 12 ------------ 2 files changed, 5 insertions(+), 12 deletions(-) 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; -- 2.30.2