OSDN Git Service

PR debug/51746
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Jan 2012 20:20:55 +0000 (20:20 +0000)
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 6 Jan 2012 20:20:55 +0000 (20:20 +0000)
* cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182963 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cselib.c

index 0457656..2c65a6a 100644 (file)
@@ -1,3 +1,8 @@
+2012-01-06  Alexandre Oliva  <aoliva@redhat.com>
+
+       PR debug/51746
+       * cselib.c (cselib_hash_rtx): Hash incoming VALUEs too.
+
 2012-01-06  Arnaud Charlet  <charlet@adacore.com>
 
        * c-decl.c (ext_block): Moved up.
index 9934abb..7db24ae 100644 (file)
@@ -1020,6 +1020,10 @@ cselib_hash_rtx (rtx x, int create, enum machine_mode memmode)
 
   switch (code)
     {
+    case VALUE:
+      e = CSELIB_VAL_PTR (x);
+      return e->hash;
+
     case MEM:
     case REG:
       e = cselib_lookup (x, GET_MODE (x), create, memmode);