OSDN Git Service

2011-04-15 Martin Jambor <mjambor@suse.cz>
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Apr 2011 18:38:05 +0000 (18:38 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Apr 2011 18:38:05 +0000 (18:38 +0000)
* ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
of ADR_EXPRs.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@172515 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-prop.c

index 85af683..41877aa 100644 (file)
@@ -1,5 +1,10 @@
 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
        * tree-emutls.c (lower_emutls_function_body): Call
        cgraph_get_create_node instead of cgraph_get_node.  Do not assert the
index 9a50ce2..be223cc 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;