From f4caead02f75bf6c2d1de2e35498fcf6a32936e2 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Thu, 31 Jan 2019 08:09:59 +0000 Subject: [PATCH] re PR rtl-optimization/89115 (compile time and memory hog) 2019-01-31 Richard Biener PR rtl-optimization/89115 * lra.c (lra_rtx_hash): Properly hash CONST_INT values. From-SVN: r268414 --- gcc/ChangeLog | 5 +++++ gcc/lra.c | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8b632f5f92e..d1166329e6c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2019-01-31 Richard Biener + + PR rtl-optimization/89115 + * lra.c (lra_rtx_hash): Properly hash CONST_INT values. + 2019-01-30 Martin Sebor PR other/89106 diff --git a/gcc/lra.c b/gcc/lra.c index e00e6e77e9f..f1300652889 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; } -- 2.30.2