* An unreviewed ARM patch
@ 2010-06-04 13:16 Kazu Hirata
2010-06-04 15:53 ` Richard Earnshaw
0 siblings, 1 reply; 5+ messages in thread
From: Kazu Hirata @ 2010-06-04 13:16 UTC (permalink / raw)
To: gcc-patches; +Cc: nickc, richard.earnshaw, paul
Hi,
Could someone please review the following patch?
[patch] arm: Improve arm_rtx_costs_1 for Thumb2.
http://gcc.gnu.org/ml/gcc-patches/2009-12/msg00958.html
Thanks,
Kazu Hirata
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: An unreviewed ARM patch
2010-06-04 13:16 An unreviewed ARM patch Kazu Hirata
@ 2010-06-04 15:53 ` Richard Earnshaw
2010-06-04 17:05 ` Kazu Hirata
2010-06-08 2:03 ` Kazu Hirata
0 siblings, 2 replies; 5+ messages in thread
From: Richard Earnshaw @ 2010-06-04 15:53 UTC (permalink / raw)
To: Kazu Hirata; +Cc: gcc-patches, nickc, paul
On Fri, 2010-06-04 at 06:16 -0700, Kazu Hirata wrote:
> Hi,
>
> Could someone please review the following patch?
>
> [patch] arm: Improve arm_rtx_costs_1 for Thumb2.
> http://gcc.gnu.org/ml/gcc-patches/2009-12/msg00958.html
>
Hmm, I agree that there's probably some code in the rest of the MINUS
case that should be shared. I'm not convinced, however, that we should
fall through into the PLUS case: most of the code from that point on
will only apply if we have RSB (and we don't in Thumb-2).
So maybe the check should be moved to the end of the MINUS code (ie just
before the fall-through) and then simplified to remove the sub-cases
that have already been handled.
R.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: An unreviewed ARM patch
2010-06-04 15:53 ` Richard Earnshaw
@ 2010-06-04 17:05 ` Kazu Hirata
2010-06-08 2:03 ` Kazu Hirata
1 sibling, 0 replies; 5+ messages in thread
From: Kazu Hirata @ 2010-06-04 17:05 UTC (permalink / raw)
To: Richard Earnshaw; +Cc: gcc-patches, nickc, paul
Hi Richard,
>> Could someone please review the following patch?
>>
>> [patch] arm: Improve arm_rtx_costs_1 for Thumb2.
>> http://gcc.gnu.org/ml/gcc-patches/2009-12/msg00958.html
>>
>
> Hmm, I agree that there's probably some code in the rest of the MINUS
> case that should be shared. I'm not convinced, however, that we should
> fall through into the PLUS case: most of the code from that point on
> will only apply if we have RSB (and we don't in Thumb-2).
>
> So maybe the check should be moved to the end of the MINUS code (ie just
> before the fall-through) and then simplified to remove the sub-cases
> that have already been handled.
Thank you for a review. I'll revise the patch accordingly.
Kazu Hirata
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: An unreviewed ARM patch
2010-06-04 15:53 ` Richard Earnshaw
2010-06-04 17:05 ` Kazu Hirata
@ 2010-06-08 2:03 ` Kazu Hirata
2010-06-08 8:55 ` Richard Earnshaw
1 sibling, 1 reply; 5+ messages in thread
From: Kazu Hirata @ 2010-06-08 2:03 UTC (permalink / raw)
To: Richard Earnshaw; +Cc: gcc-patches, nickc, paul
Hi Richard,
>> Could someone please review the following patch?
>>
>> [patch] arm: Improve arm_rtx_costs_1 for Thumb2.
>> http://gcc.gnu.org/ml/gcc-patches/2009-12/msg00958.html
>>
>
> Hmm, I agree that there's probably some code in the rest of the MINUS
> case that should be shared. I'm not convinced, however, that we should
> fall through into the PLUS case: most of the code from that point on
> will only apply if we have RSB (and we don't in Thumb-2).
Err, which form of RSB are you talking about? IIRC, ARM has:
RSB <Rd>, <Rn>, <shifter_operand>
Thumb-2 has:
RSB <Rd>,<Rn>,#0
RSB.W <Rd>,<Rn>,#<const>
RSB <Rd>,<Rn>,<Rm>{,<shift>}
So, Thumb-2's RSB supports most of ARM's RSB, except somewhat exotic
operands like variable shifts and rotations in <shifter_operand>.
Did you mean to say Thumb-1 above?
Thanks,
Kazu Hirata
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: An unreviewed ARM patch
2010-06-08 2:03 ` Kazu Hirata
@ 2010-06-08 8:55 ` Richard Earnshaw
0 siblings, 0 replies; 5+ messages in thread
From: Richard Earnshaw @ 2010-06-08 8:55 UTC (permalink / raw)
To: Kazu Hirata; +Cc: gcc-patches, nickc, paul
On Mon, 2010-06-07 at 22:03 -0400, Kazu Hirata wrote:
> Hi Richard,
>
> >> Could someone please review the following patch?
> >>
> >> [patch] arm: Improve arm_rtx_costs_1 for Thumb2.
> >> http://gcc.gnu.org/ml/gcc-patches/2009-12/msg00958.html
> >>
> >
> > Hmm, I agree that there's probably some code in the rest of the MINUS
> > case that should be shared. I'm not convinced, however, that we should
> > fall through into the PLUS case: most of the code from that point on
> > will only apply if we have RSB (and we don't in Thumb-2).
>
> Err, which form of RSB are you talking about? IIRC, ARM has:
>
> RSB <Rd>, <Rn>, <shifter_operand>
>
> Thumb-2 has:
>
> RSB <Rd>,<Rn>,#0
> RSB.W <Rd>,<Rn>,#<const>
> RSB <Rd>,<Rn>,<Rm>{,<shift>}
>
> So, Thumb-2's RSB supports most of ARM's RSB, except somewhat exotic
> operands like variable shifts and rotations in <shifter_operand>.
>
> Did you mean to say Thumb-1 above?
>
Possibly :-) But it's more likely I was thinking about the lack of RSC
in Thumb2.
In which case, the patch is OK.
R.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-06-08 8:55 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-04 13:16 An unreviewed ARM patch Kazu Hirata
2010-06-04 15:53 ` Richard Earnshaw
2010-06-04 17:05 ` Kazu Hirata
2010-06-08 2:03 ` Kazu Hirata
2010-06-08 8:55 ` Richard Earnshaw
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).