]> gcc.gnu.org Git - gcc.git/commitdiff
ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling of ADR_EXPRs.
authorMartin Jambor <mjambor@suse.cz>
Fri, 15 Apr 2011 18:38:05 +0000 (20:38 +0200)
committerMartin Jambor <jamborm@gcc.gnu.org>
Fri, 15 Apr 2011 18:38:05 +0000 (20:38 +0200)
2011-04-15  Martin Jambor  <mjambor@suse.cz>

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

From-SVN: r172515

gcc/ChangeLog
gcc/ipa-prop.c

index 85af6832fc8b078f3809b114745d841ff7f946ba..41877aa1687d9e3dd42e42ef4e3cd045e3273114 100644 (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
index 9a50ce2c007461bb5b24e479e6c6a3c232ecb9a9..be223cc792509cc78ad02eb48709d5acea785f64 100644 (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;
This page took 0.08452 seconds and 5 git commands to generate.