]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/regcprop.c
Turn HARD_REGNO_MODE_OK into a target hook
[thirdparty/gcc.git] / gcc / regcprop.c
index 40307b01fb2da6c60ca2fda9bb32771289e29724..1161f157d8e2ff45331984b0820766823b6cea98 100644 (file)
@@ -420,7 +420,7 @@ maybe_mode_change (machine_mode orig_mode, machine_mode copy_mode,
       offset = ((WORDS_BIG_ENDIAN ? wordoffset : 0)
                + (BYTES_BIG_ENDIAN ? byteoffset : 0));
       regno += subreg_regno_offset (regno, orig_mode, offset, new_mode);
-      if (HARD_REGNO_MODE_OK (regno, new_mode))
+      if (targetm.hard_regno_mode_ok (regno, new_mode))
        return gen_raw_REG (new_mode, regno);
     }
   return NULL_RTX;