aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2002-05-23 09:29:30 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2002-05-23 07:29:30 +0000
commitd51f363255ccc73e798b73d789d62968cb9aee29 (patch)
tree1f7fce2af439e05a8d2faec8fcc3e4bc180c61a6 /gcc/gcse.c
parentba081f92de72fb82694bd60f632a488216ff414a (diff)
downloadgcc-d51f363255ccc73e798b73d789d62968cb9aee29.zip
gcc-d51f363255ccc73e798b73d789d62968cb9aee29.tar.gz
gcc-d51f363255ccc73e798b73d789d62968cb9aee29.tar.bz2
* gcse.c (hash_expr): Do not use alias set for hashing.
From-SVN: r53772
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r--gcc/gcse.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c
index b2aad05..8d05e00 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -1689,7 +1689,9 @@ hash_expr_1 (x, mode, do_not_record_p)
}
hash += (unsigned int) MEM;
- hash += MEM_ALIAS_SET (x);
+ /* We used alias set for hashing, but this is not good, since the alias
+ set may differ in -fprofile-arcs and -fbranch-probabilities compilation
+ causing the profiles to fail to match. */
x = XEXP (x, 0);
goto repeat;