public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Question about simple_return pattern for the GCC ARM backend.
@ 2013-12-28  1:31 Yangfei (Felix)
  2013-12-28 10:08 ` Chung-Lin Tang
  0 siblings, 1 reply; 4+ messages in thread
From: Yangfei (Felix) @ 2013-12-28  1:31 UTC (permalink / raw)
  To: gcc; +Cc: Yangfei (Felix)

Hi, 

  I think that simple_return standard pattern is useful for the ARM. I mean it should be good for target code performance.
 But seems this pattern is not there for the GCC ARM backend. Can anyone explain the reason why we don’t need this?

Cheers,
Fei

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about simple_return pattern for the GCC ARM backend.
  2013-12-28  1:31 Question about simple_return pattern for the GCC ARM backend Yangfei (Felix)
@ 2013-12-28 10:08 ` Chung-Lin Tang
  2013-12-30  3:24   ` Yangfei (Felix)
  0 siblings, 1 reply; 4+ messages in thread
From: Chung-Lin Tang @ 2013-12-28 10:08 UTC (permalink / raw)
  To: Yangfei (Felix), gcc

On 2013/12/28 09:31 AM, Yangfei (Felix) wrote:
> Hi, 
> 
>   I think that simple_return standard pattern is useful for the ARM. I mean it should be good for target code performance.
>  But seems this pattern is not there for the GCC ARM backend. Can anyone explain the reason why we don’t need this?
> 
> Cheers,
> Fei
> 

It does use it. Search for the "<return_str>return" expand pattern, and
the "returns" code iterator in config/arm/iterators.md.

Chung-Lin

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about simple_return pattern for the GCC ARM backend.
  2013-12-28 10:08 ` Chung-Lin Tang
@ 2013-12-30  3:24   ` Yangfei (Felix)
  2013-12-30 16:48     ` Ramana Radhakrishnan
  0 siblings, 1 reply; 4+ messages in thread
From: Yangfei (Felix) @ 2013-12-30  3:24 UTC (permalink / raw)
  To: Chung-Lin Tang, gcc

Thanks for the reply. I found it in GCC-4.8. 
The gcc version I look at is GCC-4.7. Seems this pattern is not there for this version.

> 
> On 2013/12/28 09:31 AM, Yangfei (Felix) wrote:
> > Hi,
> >
> >   I think that simple_return standard pattern is useful for the ARM. I mean
> it should be good for target code performance.
> >  But seems this pattern is not there for the GCC ARM backend. Can anyone
> explain the reason why we don’t need this?
> >
> > Cheers,
> > Fei
> >
> 
> It does use it. Search for the "<return_str>return" expand pattern, and the
> "returns" code iterator in config/arm/iterators.md.
> 
> Chung-Lin


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Question about simple_return pattern for the GCC ARM backend.
  2013-12-30  3:24   ` Yangfei (Felix)
@ 2013-12-30 16:48     ` Ramana Radhakrishnan
  0 siblings, 0 replies; 4+ messages in thread
From: Ramana Radhakrishnan @ 2013-12-30 16:48 UTC (permalink / raw)
  To: Yangfei (Felix); +Cc: Chung-Lin Tang, gcc

On Mon, Dec 30, 2013 at 3:23 AM, Yangfei (Felix) <felix.yang@huawei.com> wrote:
> Thanks for the reply. I found it in GCC-4.8.
> The gcc version I look at is GCC-4.7. Seems this pattern is not there for this version.

That will be because this was added in time for GCC 4.8. If you need
to find such information as to when something was added please look
into Changelog* files and / or look on the gcc-patches archive. In
this case you need to look for a patch that enables shrink wrapping
for ARM.

Also, checking whether certain features are present or not in the
source tree are best checked in the trunk sources since that is where
new development happens.

Thanks,
Ramana

>
>>
>> On 2013/12/28 09:31 AM, Yangfei (Felix) wrote:
>> > Hi,
>> >
>> >   I think that simple_return standard pattern is useful for the ARM. I mean
>> it should be good for target code performance.
>> >  But seems this pattern is not there for the GCC ARM backend. Can anyone
>> explain the reason why we don’t need this?
>> >
>> > Cheers,
>> > Fei
>> >
>>
>> It does use it. Search for the "<return_str>return" expand pattern, and the
>> "returns" code iterator in config/arm/iterators.md.
>>
>> Chung-Lin
>

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-30 16:48 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-12-28  1:31 Question about simple_return pattern for the GCC ARM backend Yangfei (Felix)
2013-12-28 10:08 ` Chung-Lin Tang
2013-12-30  3:24   ` Yangfei (Felix)
2013-12-30 16:48     ` Ramana Radhakrishnan

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).