]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/regclass.c
alias.c (rtx_equal_for_memref_p): Use predicates to test rtx classes and new rtx...
[thirdparty/gcc.git] / gcc / regclass.c
index e2023fa94ee359db5d90bc6aa2c2817889bfd56b..0203d8aa3ff99ce183eaeb43065edf9e1c1f58e5 100644 (file)
@@ -1008,13 +1008,12 @@ record_operand_costs (rtx insn, struct costs *op_costs,
 static rtx
 scan_one_insn (rtx insn, int pass)
 {
-  enum rtx_code code = GET_CODE (insn);
   enum rtx_code pat_code;
   rtx set, note;
   int i, j;
   struct costs op_costs[MAX_RECOG_OPERANDS];
 
-  if (GET_RTX_CLASS (code) != 'i')
+  if (!INSN_P (insn))
     return insn;
 
   pat_code = GET_CODE (PATTERN (insn));