aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/gcse.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 565e25b..67381fd 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+Thu May 23 09:22:23 CEST 2002 Jan Hubicka <jh@suse.cz>
+
+ * gcse.c (hash_expr): Do not use alias set for hashing.
+
2002-05-22 Kevin Buettner <kevinb@redhat.com>
* dbxout.c (dbxout_class_name_qualifiers): New function.
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;