From: Jeff Law Date: Fri, 10 Dec 2004 17:28:32 +0000 (-0700) Subject: tree-ssa-alias.c (setup_pointers_and_addressables): Remove redundant test of v_ann... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f914cec23622b17cc1972c1deea6bcfbf843b0fe;p=platform%2Fupstream%2Fgcc.git tree-ssa-alias.c (setup_pointers_and_addressables): Remove redundant test of v_ann->mem_tag_kind. * 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fa08cb4..0d4929c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2004-12-02 Jeff Law + + * 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 * config/frv/frv-modes.def: Fix comment typos. diff --git a/gcc/tree-ssa-alias.c b/gcc/tree-ssa-alias.c index b321d26..ecdd7f4 100644 --- a/gcc/tree-ssa-alias.c +++ b/gcc/tree-ssa-alias.c @@ -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)) { diff --git a/gcc/tree-ssa-operands.c b/gcc/tree-ssa-operands.c index f8d7015..fc43a19 100644 --- a/gcc/tree-ssa-operands.c +++ b/gcc/tree-ssa-operands.c @@ -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;