summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-21 00:18:23 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2002-05-21 00:18:23 +0000
commitb213eefe04e30fff1cbe34cf1f229dc988d46062 (patch)
tree533dbf876c38000282879c1ff10783d915884955
parent6cddbfd4d2197fb9ea16067964944354f8fd127a (diff)
downloadgcc-b213eefe04e30fff1cbe34cf1f229dc988d46062.tar.gz
* reload1.c (reload_cse_simplify): Fix typo in rtx code check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53675 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/reload1.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index e16fcac3496..55a5d12bddb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,7 @@
+2002-05-20 Krister Walfridsson <cato@df.lth.se>
+
+ * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
+
2002-05-20 H.J. Lu (hjl@gnu.org)
Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
diff --git a/gcc/reload1.c b/gcc/reload1.c
index 1349c3c8559..dca052e7497 100644
--- a/gcc/reload1.c
+++ b/gcc/reload1.c
@@ -8077,8 +8077,8 @@ reload_cse_simplify (insn)
if (!count && reload_cse_noop_set_p (body))
{
rtx value = SET_DEST (body);
- if (GET_CODE (body) == REG
- && ! REG_FUNCTION_VALUE_P (SET_DEST (body)))
+ if (REG_P (value)
+ && ! REG_FUNCTION_VALUE_P (value))
value = 0;
reload_cse_delete_noop_set (insn, value);
return;