(redundant_insn_p): Fix typo in testing for types of insns by using
authorRichard Kenner <kenner@gcc.gnu.org>
Thu, 25 Feb 1993 23:29:31 +0000 (18:29 -0500)
committerRichard Kenner <kenner@gcc.gnu.org>
Thu, 25 Feb 1993 23:29:31 +0000 (18:29 -0500)
GET_RTX_CLASS.

From-SVN: r3534

gcc/reorg.c

index 9189724ad98617008f717ecd31cf0694c6b80ef2..efbc078e1198f1ccf265a887b53b62c93a3d743e 100644 (file)
@@ -1576,8 +1576,7 @@ redundant_insn_p (insn, target, delay_list)
       if (GET_CODE (trial) == CODE_LABEL)
        return 0;
 
-      if (GET_CODE (trial) != INSN && GET_CODE (trial) != JUMP_INSN
-         && GET_CODE (trial) != JUMP_INSN)
+      if (GET_RTX_CLASS (GET_CODE (trial)) != 'i')
        continue;
 
       pat = PATTERN (trial);