summaryrefslogtreecommitdiff
path: root/gcc/gcse.c
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-23 07:29:30 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-23 07:29:30 +0000
commitf993b2302ece6964f4e3e95dfc41d202e1d466eb (patch)
tree1f7fce2af439e05a8d2faec8fcc3e4bc180c61a6 /gcc/gcse.c
parent4a886c8c325202eed83de8dc6acd6bfffa19144d (diff)
downloadgcc-f993b2302ece6964f4e3e95dfc41d202e1d466eb.tar.gz
* gcse.c (hash_expr): Do not use alias set for hashing.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53772 138bc75d-0d04-0410-961f-82ee72b054a4
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 b2aad051539..8d05e005bb0 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;