]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/ree.c
Turn HARD_REGNO_MODE_OK into a target hook
[thirdparty/gcc.git] / gcc / ree.c
index bffb18b2b0a9416d9fb72d71c1a861d15dceae24..72564de98af8b07b4d3fa3dfaa2828691f34e644 100644 (file)
--- a/gcc/ree.c
+++ b/gcc/ree.c
@@ -819,7 +819,7 @@ combine_reaching_defs (ext_cand *cand, const_rtx set_pat, ext_state *state)
 
       /* Ensure we can use the src_reg in dst_mode (needed for
         the (set (reg1) (reg2)) insn mentioned above).  */
-      if (!HARD_REGNO_MODE_OK (REGNO (src_reg), dst_mode))
+      if (!targetm.hard_regno_mode_ok (REGNO (src_reg), dst_mode))
        return false;
 
       /* Ensure the number of hard registers of the copy match.  */