diff options
Diffstat (limited to 'gcc/cselib.c')
-rw-r--r-- | gcc/cselib.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/cselib.c b/gcc/cselib.c index 29705cc..7a50f50 100644 --- a/gcc/cselib.c +++ b/gcc/cselib.c @@ -976,6 +976,9 @@ rtx_equal_for_cselib_1 (rtx x, rtx y, machine_mode memmode) case LABEL_REF: return LABEL_REF_LABEL (x) == LABEL_REF_LABEL (y); + case REG: + return REGNO (x) == REGNO (y); + case MEM: /* We have to compare any autoinc operations in the addresses using this MEM's mode. */ |