From b50c6e49e283fcbd0fb6c916ab65dc6accf889b0 Mon Sep 17 00:00:00 2001 From: rguenth Date: Sun, 16 May 2010 17:15:30 +0000 Subject: [PATCH] 2010-05-16 Richard Guenther * alias.c (nonoverlapping_memrefs_p): Remove use of IPA type-escape information. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159460 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/alias.c | 42 ++++++++++-------------------------------- 2 files changed, 15 insertions(+), 32 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 94cb08b95b56..71cf0d3c0d2b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-05-16 Richard Guenther + + * alias.c (nonoverlapping_memrefs_p): Remove use of + IPA type-escape information. + 2010-05-16 Joseph Myers * c-common.c (c_common_reswords): Add _Static_assert for C. diff --git a/gcc/alias.c b/gcc/alias.c index 1d69d9da603b..a4083a1a13b1 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -2196,43 +2196,21 @@ nonoverlapping_memrefs_p (const_rtx x, const_rtx y) moffsetx = MEM_OFFSET (x); if (TREE_CODE (exprx) == COMPONENT_REF) { - if (TREE_CODE (expry) == VAR_DECL - && POINTER_TYPE_P (TREE_TYPE (expry))) - { - tree field = TREE_OPERAND (exprx, 1); - tree fieldcontext = DECL_FIELD_CONTEXT (field); - if (ipa_type_escape_field_does_not_clobber_p (fieldcontext, - TREE_TYPE (field))) - return 1; - } - { - tree t = decl_for_component_ref (exprx); - if (! t) - return 0; - moffsetx = adjust_offset_for_component_ref (exprx, moffsetx); - exprx = t; - } + tree t = decl_for_component_ref (exprx); + if (! t) + return 0; + moffsetx = adjust_offset_for_component_ref (exprx, moffsetx); + exprx = t; } moffsety = MEM_OFFSET (y); if (TREE_CODE (expry) == COMPONENT_REF) { - if (TREE_CODE (exprx) == VAR_DECL - && POINTER_TYPE_P (TREE_TYPE (exprx))) - { - tree field = TREE_OPERAND (expry, 1); - tree fieldcontext = DECL_FIELD_CONTEXT (field); - if (ipa_type_escape_field_does_not_clobber_p (fieldcontext, - TREE_TYPE (field))) - return 1; - } - { - tree t = decl_for_component_ref (expry); - if (! t) - return 0; - moffsety = adjust_offset_for_component_ref (expry, moffsety); - expry = t; - } + tree t = decl_for_component_ref (expry); + if (! t) + return 0; + moffsety = adjust_offset_for_component_ref (expry, moffsety); + expry = t; } if (! DECL_P (exprx) || ! DECL_P (expry)) -- 2.47.2