diff options
| author | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-28 14:21:18 +0000 |
|---|---|---|
| committer | bernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-03-28 14:21:18 +0000 |
| commit | bdb45307581360386ebce5e50ef0b86f4ba14fb1 (patch) | |
| tree | eaa8423b908281bb1cba53221f228bc9c84e4039 | |
| parent | 454d5a5f5542afc968455e09ca064da7317e746d (diff) | |
| download | ppe42-gcc-bdb45307581360386ebce5e50ef0b86f4ba14fb1.tar.gz ppe42-gcc-bdb45307581360386ebce5e50ef0b86f4ba14fb1.zip | |
Make hash values more random
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@40931 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 4 | ||||
| -rw-r--r-- | gcc/cselib.c | 14 |
2 files changed, 5 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index f57accb4571..ed0b19df34d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-03-28 Bernd Schmidt <bernds@redhat.com> + + * cselib.c (hash_rtx): Don't do tail recursion elimination by hand. + 2001-03-28 Richard Henderson <rth@redhat.com> * config/rs6000/rs6000.h (EPILOGUE_USES): Use TARGET_AIX, diff --git a/gcc/cselib.c b/gcc/cselib.c index c0aa0e659bb..1cc4a74a48b 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; |

