+2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
+
+ PR target/79912
+ * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
+ (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
+
2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
* config/riscv/riscv.c (riscv_print_operand): Use "fence
return 0;
}
-/* Implement TARGET_PREFERRED_RELOAD_CLASS. */
-
-static reg_class_t
-riscv_preferred_reload_class (rtx x ATTRIBUTE_UNUSED, reg_class_t rclass)
-{
- return reg_class_subset_p (FP_REGS, rclass) ? FP_REGS :
- reg_class_subset_p (GR_REGS, rclass) ? GR_REGS :
- rclass;
-}
-
/* Implement TARGET_MEMORY_MOVE_COST. */
static int
#undef TARGET_ADDRESS_COST
#define TARGET_ADDRESS_COST riscv_address_cost
-#undef TARGET_PREFERRED_RELOAD_CLASS
-#define TARGET_PREFERRED_RELOAD_CLASS riscv_preferred_reload_class
-
#undef TARGET_ASM_FILE_START
#define TARGET_ASM_FILE_START riscv_file_start
#undef TARGET_ASM_FILE_START_FILE_DIRECTIVE