aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/rs6000
diff options
context:
space:
mode:
authorOleg Endo <olegendo@gcc.gnu.org>2015-01-05 22:04:53 +0000
committerOleg Endo <olegendo@gcc.gnu.org>2015-01-05 22:04:53 +0000
commitc9bd6bcd5d3b6250f86f48b2bb475e41a420c512 (patch)
tree8e3fd9b95272e38722b8ccc0c1966d15de16b449 /gcc/config/rs6000
parentfca4adf2095dfcd453ab32250984d85ff66bbd32 (diff)
downloadgcc-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/rs6000')
-rw-r--r--gcc/config/rs6000/rs6000.c3
-rw-r--r--gcc/config/rs6000/spe.md6
2 files changed, 3 insertions, 6 deletions
diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
index 608965e..e2bfcd6 100644
--- a/gcc/config/rs6000/rs6000.c
+++ b/gcc/config/rs6000/rs6000.c
@@ -16087,8 +16087,7 @@ rs6000_output_load_multiple (rtx operands[3])
return "lwz %2,0(%1)";
for (i = 0; i < words; i++)
- if (refers_to_regno_p (REGNO (operands[2]) + i,
- REGNO (operands[2]) + i + 1, operands[1], 0))
+ if (refers_to_regno_p (REGNO (operands[2]) + i, operands[1]))
{
if (i == words-1)
{
diff --git a/gcc/config/rs6000/spe.md b/gcc/config/rs6000/spe.md
index e14bae7..d65dcf3 100644
--- a/gcc/config/rs6000/spe.md
+++ b/gcc/config/rs6000/spe.md
@@ -2421,8 +2421,7 @@
it 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]))
{
if (WORDS_BIG_ENDIAN)
return \"lwz %L0,%L1\;lwz %0,%1\";
@@ -2465,8 +2464,7 @@
else
return \"evldd%X1 %Y0,%y1\;evmergehi %Z0,%Y0,%Y0\";
}
- 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]))
{
if (WORDS_BIG_ENDIAN)
return \"lwz %Z0,%L1\;lwz %Y0,%1\";