diff options
author | Bernd Schmidt <bernds@redhat.com> | 2001-03-28 14:21:18 +0000 |
---|---|---|
committer | Bernd Schmidt <bernds@gcc.gnu.org> | 2001-03-28 14:21:18 +0000 |
commit | 669ff14e8d774550cb426ae240c5c74eb5380d9c (patch) | |
tree | eaa8423b908281bb1cba53221f228bc9c84e4039 /gcc/cselib.c | |
parent | 3553b09d2c9d90400e29a67c59cc2986c8109392 (diff) | |
download | gcc-669ff14e8d774550cb426ae240c5c74eb5380d9c.zip gcc-669ff14e8d774550cb426ae240c5c74eb5380d9c.tar.gz gcc-669ff14e8d774550cb426ae240c5c74eb5380d9c.tar.bz2 |
Make hash values more random
From-SVN: r40931
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index c0aa0e6..1cc4a74 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -566,8 +566,6 @@ hash_rtx (x, mode, create) const char *fmt; unsigned int hash = 0; - /* repeat is used to turn tail-recursion into iteration. */ - repeat: code = GET_CODE (x); hash += (unsigned) code + (unsigned) GET_MODE (x); @@ -637,18 +635,8 @@ hash_rtx (x, mode, create) if (fmt[i] == 'e') { rtx tem = XEXP (x, i); - unsigned int tem_hash; + unsigned int tem_hash = hash_rtx (tem, 0, create); - /* If we are about to do the last recursive call - needed at this level, change it into iteration. - This function is called enough to be worth it. */ - if (i == 0) - { - x = tem; - goto repeat; - } - - tem_hash = hash_rtx (tem, 0, create); if (tem_hash == 0) return 0; |