* [PATCH] C-SKY: Use default for TARGET_CAN_CHANGE_MODE_CLASS.
@ 2021-04-30 13:02 Geng Qi
2021-05-26 9:25 ` Cooper Qu
0 siblings, 1 reply; 2+ messages in thread
From: Geng Qi @ 2021-04-30 13:02 UTC (permalink / raw)
To: gcc-patches, cooper.qu; +Cc: Geng Qi
gcc/ChangeLog:
* config/csky/csky.c (csky_can_change_mode_class): Delete.
For csky, HF/SF mode use the low bits of VREGS.
---
gcc/config/csky/csky.c | 16 ----------------
1 file changed, 16 deletions(-)
diff --git a/gcc/config/csky/csky.c b/gcc/config/csky/csky.c
index 7f2af82..67cdf9c 100644
--- a/gcc/config/csky/csky.c
+++ b/gcc/config/csky/csky.c
@@ -611,9 +611,6 @@ csky_default_logical_op_non_short_circuit (void)
#undef TARGET_MODES_TIEABLE_P
#define TARGET_MODES_TIEABLE_P csky_modes_tieable_p
-#undef TARGET_CAN_CHANGE_MODE_CLASS
-#define TARGET_CAN_CHANGE_MODE_CLASS csky_can_change_mode_class
-
#undef TARGET_CONDITIONAL_REGISTER_USAGE
#define TARGET_CONDITIONAL_REGISTER_USAGE csky_conditional_register_usage
@@ -2373,19 +2370,6 @@ csky_modes_tieable_p (machine_mode mode1, machine_mode mode2)
&& (mode1 == DFmode || mode2 == DFmode));
}
-/* Implement TARGET_CAN_CHANGE_MODE_CLASS.
- V_REG registers can't do subreg as all values are reformatted to
- internal precision. */
-
-static bool
-csky_can_change_mode_class (machine_mode from,
- machine_mode to,
- reg_class_t rclass)
-{
- return (GET_MODE_SIZE (from) == GET_MODE_SIZE (to)
- || !reg_classes_intersect_p (V_REGS, rclass));
-}
-
/* Implement TARGET_CLASS_LIKELY_SPILLED_P.
We need to define this for MINI_REGS when we only use r0 - r7.
Otherwise we can end up using r0-r4 for function arguments, and don't
--
2.7.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] C-SKY: Use default for TARGET_CAN_CHANGE_MODE_CLASS.
2021-04-30 13:02 [PATCH] C-SKY: Use default for TARGET_CAN_CHANGE_MODE_CLASS Geng Qi
@ 2021-05-26 9:25 ` Cooper Qu
0 siblings, 0 replies; 2+ messages in thread
From: Cooper Qu @ 2021-05-26 9:25 UTC (permalink / raw)
To: Geng Qi, gcc-patches
merged.
On 4/30/21 9:02 PM, Geng Qi wrote:
> gcc/ChangeLog:
>
> * config/csky/csky.c (csky_can_change_mode_class): Delete.
> For csky, HF/SF mode use the low bits of VREGS.
> ---
> gcc/config/csky/csky.c | 16 ----------------
> 1 file changed, 16 deletions(-)
>
> diff --git a/gcc/config/csky/csky.c b/gcc/config/csky/csky.c
> index 7f2af82..67cdf9c 100644
> --- a/gcc/config/csky/csky.c
> +++ b/gcc/config/csky/csky.c
> @@ -611,9 +611,6 @@ csky_default_logical_op_non_short_circuit (void)
> #undef TARGET_MODES_TIEABLE_P
> #define TARGET_MODES_TIEABLE_P csky_modes_tieable_p
>
> -#undef TARGET_CAN_CHANGE_MODE_CLASS
> -#define TARGET_CAN_CHANGE_MODE_CLASS csky_can_change_mode_class
> -
> #undef TARGET_CONDITIONAL_REGISTER_USAGE
> #define TARGET_CONDITIONAL_REGISTER_USAGE csky_conditional_register_usage
>
> @@ -2373,19 +2370,6 @@ csky_modes_tieable_p (machine_mode mode1, machine_mode mode2)
> && (mode1 == DFmode || mode2 == DFmode));
> }
>
> -/* Implement TARGET_CAN_CHANGE_MODE_CLASS.
> - V_REG registers can't do subreg as all values are reformatted to
> - internal precision. */
> -
> -static bool
> -csky_can_change_mode_class (machine_mode from,
> - machine_mode to,
> - reg_class_t rclass)
> -{
> - return (GET_MODE_SIZE (from) == GET_MODE_SIZE (to)
> - || !reg_classes_intersect_p (V_REGS, rclass));
> -}
> -
> /* Implement TARGET_CLASS_LIKELY_SPILLED_P.
> We need to define this for MINI_REGS when we only use r0 - r7.
> Otherwise we can end up using r0-r4 for function arguments, and don't
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-26 9:25 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-30 13:02 [PATCH] C-SKY: Use default for TARGET_CAN_CHANGE_MODE_CLASS Geng Qi
2021-05-26 9:25 ` Cooper Qu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).