aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-01-31 08:09:59 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-01-31 08:09:59 +0000
commitf4caead02f75bf6c2d1de2e35498fcf6a32936e2 (patch)
tree3e0df73c0a2db16d0993c4679489878cf2b5b7c6
parent8936f047c08193cdb5f5dda9d630e1b35045fe5e (diff)
downloadgcc-f4caead02f75bf6c2d1de2e35498fcf6a32936e2.zip
gcc-f4caead02f75bf6c2d1de2e35498fcf6a32936e2.tar.gz
gcc-f4caead02f75bf6c2d1de2e35498fcf6a32936e2.tar.bz2
re PR rtl-optimization/89115 (compile time and memory hog)
2019-01-31 Richard Biener <rguenther@suse.de> PR rtl-optimization/89115 * lra.c (lra_rtx_hash): Properly hash CONST_INT values. From-SVN: r268414
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/lra.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 8b632f5..d116632 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2019-01-31 Richard Biener <rguenther@suse.de>
+
+ PR rtl-optimization/89115
+ * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
+
2019-01-30 Martin Sebor <msebor@redhat.com>
PR other/89106
diff --git a/gcc/lra.c b/gcc/lra.c
index e00e6e7..f130065 100644
--- a/gcc/lra.c
+++ b/gcc/lra.c
@@ -1719,10 +1719,12 @@ lra_rtx_hash (rtx x)
case SCRATCH:
case CONST_DOUBLE:
- case CONST_INT:
case CONST_VECTOR:
return val;
+ case CONST_INT:
+ return val + UINTVAL (x);
+
default:
break;
}