OSDN Git Service

* reload1.c (reload_cse_simplify): Fix typo in rtx code check.
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 May 2002 00:18:23 +0000 (00:18 +0000)
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 21 May 2002 00:18:23 +0000 (00:18 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@53675 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/reload1.c

index e16fcac..55a5d12 100644 (file)
@@ -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>:
index 1349c3c..dca052e 100644 (file)
@@ -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;