From: Richard Guenther Date: Wed, 4 Aug 2010 15:35:21 +0000 (+0000) Subject: alias.c (rtx_refs_may_alias_p): Do not resort to TBAA if either alias-set is zero. X-Git-Tag: releases/gcc-4.6.0~5259 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55e3bc4cec7595280c4a69b258cafd887b6d9684;p=thirdparty%2Fgcc.git alias.c (rtx_refs_may_alias_p): Do not resort to TBAA if either alias-set is zero. 2010-08-04 Richard Guenther * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA if either alias-set is zero. From-SVN: r162867 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 77424eba5f83..23f0d8861de0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2010-08-04 Richard Guenther + + * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA + if either alias-set is zero. + 2010-08-04 Richard Guenther * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ... diff --git a/gcc/alias.c b/gcc/alias.c index 9b70bb86bb26..f5de4db9d753 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -354,7 +354,10 @@ rtx_refs_may_alias_p (const_rtx x, const_rtx mem, bool tbaa_p) || !ao_ref_from_mem (&ref2, mem)) return true; - return refs_may_alias_p_1 (&ref1, &ref2, tbaa_p); + return refs_may_alias_p_1 (&ref1, &ref2, + tbaa_p + && MEM_ALIAS_SET (x) != 0 + && MEM_ALIAS_SET (mem) != 0); } /* Returns a pointer to the alias set entry for ALIAS_SET, if there is