Make hash values more random
authorBernd Schmidt <bernds@redhat.com>
Wed, 28 Mar 2001 14:21:18 +0000 (14:21 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Wed, 28 Mar 2001 14:21:18 +0000 (14:21 +0000)
From-SVN: r40931

gcc/ChangeLog
gcc/cselib.c

index f57accb4571252d0dee3b8570b385b54db919faa..ed0b19df34dfa62fd80c64bc4b8b27016d1d2b4f 100644 (file)
@@ -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,
index c0aa0e659bb44e84c56f4f1a14272848be4a072d..1cc4a74a48bf1d7ed09f056d6756abea432c7a14 100644 (file)
@@ -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;