tree-ssa-alias.c (setup_pointers_and_addressables): Remove redundant test of v_ann...
authorJeff Law <law@redhat.com>
Fri, 10 Dec 2004 17:28:32 +0000 (10:28 -0700)
committerJeff Law <law@gcc.gnu.org>
Fri, 10 Dec 2004 17:28:32 +0000 (10:28 -0700)
* tree-ssa-alias.c (setup_pointers_and_addressables): Remove
redundant test of v_ann->mem_tag_kind.

* tree-ssa-operands.c (get_indirect_ref_operands): Remove
redundant conditional clearing opf_kill_def.

From-SVN: r92000

gcc/ChangeLog
gcc/tree-ssa-alias.c
gcc/tree-ssa-operands.c

index fa08cb4..0d4929c 100644 (file)
@@ -1,3 +1,11 @@
+2004-12-02  Jeff Law  <law@redhat.com>
+
+       * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
+       redundant test of v_ann->mem_tag_kind.
+
+       * tree-ssa-operands.c (get_indirect_ref_operands): Remove
+       redundant conditional clearing opf_kill_def.
+
 2004-12-10  Richard Sandiford  <rsandifo@redhat.com>
 
        * config/frv/frv-modes.def: Fix comment typos.
index b321d26..ecdd7f4 100644 (file)
@@ -1402,7 +1402,6 @@ setup_pointers_and_addressables (struct alias_info *ai)
       if (TREE_ADDRESSABLE (var))
        {
          if (!bitmap_bit_p (ai->addresses_needed, v_ann->uid)
-             && v_ann->mem_tag_kind == NOT_A_TAG
              && TREE_CODE (var) != RESULT_DECL
              && !is_global_var (var))
            {
index f8d7015..fc43a19 100644 (file)
@@ -1374,18 +1374,6 @@ get_indirect_ref_operands (tree stmt, tree expr, int flags)
   /* Stores into INDIRECT_REF operands are never killing definitions.  */
   flags &= ~opf_kill_def;
 
-  if (REF_ORIGINAL (expr))
-    {
-      enum tree_code ocode = TREE_CODE (REF_ORIGINAL (expr));
-
-      /* If we originally accessed part of a structure, we do it still.  */
-      if (ocode == ARRAY_REF
-         || ocode == COMPONENT_REF
-         || ocode == REALPART_EXPR
-         || ocode == IMAGPART_EXPR)
-       flags &= ~opf_kill_def;
-    }
-
   if (SSA_VAR_P (ptr))
     {
       struct ptr_info_def *pi = NULL;