diff options
| author | Oleg Endo <olegendo@gcc.gnu.org> | 2015-01-05 22:04:53 +0000 |
|---|---|---|
| committer | Oleg Endo <olegendo@gcc.gnu.org> | 2015-01-05 22:04:53 +0000 |
| commit | c9bd6bcd5d3b6250f86f48b2bb475e41a420c512 (patch) | |
| tree | 8e3fd9b95272e38722b8ccc0c1966d15de16b449 /gcc/config/arc | |
| parent | fca4adf2095dfcd453ab32250984d85ff66bbd32 (diff) | |
| download | gcc-c9bd6bcd5d3b6250f86f48b2bb475e41a420c512.zip gcc-c9bd6bcd5d3b6250f86f48b2bb475e41a420c512.tar.gz gcc-c9bd6bcd5d3b6250f86f48b2bb475e41a420c512.tar.bz2 | |
rtlanal.c (refers_to_regno_p): Change return value from int to bool.
gcc/
* rtlanal.c (refers_to_regno_p): Change return value from int to bool.
* rtl.h (refers_to_regno_p): Add overload.
* cse.c: Use it.
* bt-load.c: Likewise.
* combine.c: Likewise.
* df-scan.c: Likewise.
* sched-deps.c: Likewise.
* config/s390/s390.c: Likewise.
* config/m32r/m32r.c: Likewise.
* config/rs6000/spe.md: Likewise.
* config/rs6000/rs6000.c: Likewise.
* config/pa/pa.c: Likewise.
* config/stormy16/stormy16.c: Likewise.
* config/cris/cris.c: Likewise.
* config/arc/arc.md: Likewise.
* config/arc/arc.c: Likewise.
* config/sh/sh.md: Likewise.
* config/sh/sh.c: Likewise.
* config/frv/frv.c: Likewise.
From-SVN: r219203
Diffstat (limited to 'gcc/config/arc')
| -rw-r--r-- | gcc/config/arc/arc.c | 2 | ||||
| -rw-r--r-- | gcc/config/arc/arc.md | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/gcc/config/arc/arc.c b/gcc/config/arc/arc.c index dcca4de2..e22ad26 100644 --- a/gcc/config/arc/arc.c +++ b/gcc/config/arc/arc.c @@ -9059,7 +9059,7 @@ arc_regno_use_in (unsigned int regno, rtx x) int i, j; rtx tem; - if (REG_P (x) && refers_to_regno_p (regno, regno+1, x, (rtx *) 0)) + if (REG_P (x) && refers_to_regno_p (regno, x)) return x; fmt = GET_RTX_FORMAT (GET_CODE (x)); diff --git a/gcc/config/arc/arc.md b/gcc/config/arc/arc.md index ba0125d..8fabf5e6 100644 --- a/gcc/config/arc/arc.md +++ b/gcc/config/arc/arc.md @@ -952,8 +952,7 @@ last. Otherwise, load it first. Note that we cannot have auto-increment in that case since the address register is known to be dead. */ - if (refers_to_regno_p (REGNO (operands[0]), REGNO (operands[0]) + 1, - operands [1], 0)) + if (refers_to_regno_p (REGNO (operands[0]), operands[1])) return \"ld%V1 %R0,%R1\;ld%V1 %0,%1\"; else switch (GET_CODE (XEXP(operands[1], 0))) { |
