This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [arm] inhibit LDM peepholes for xscale


> When tuning for xscale, peepholing two LDRs into an LDM would generally
> be a loss.
> 
> In fact, arith_adjacentmem looks like it will sometimes transform two
> LDRs into an ADD followed by an LDM, which is probably a loss on any
> Harvard core.  But I guess we can worry about that separately.
> 
> p.
> 
> 
> 2003-05-16  Philip Blundell  <philb@gnu.org>
> 
> 	* config/arm/arm.c (load_multiple_sequence): Avoid LDM if tuning
> 	for xscale and not -Os.
> 	(store_multiple_sequence): Likewise.
> 	* config/arm/arm.md (arith_adjacentmem): Likewise.
> 

Hmm, OK, but a little bit reluctantly.  We must find a way to express 
these tuning differences without having to test a myriad of target bits.  
This particular optimization should also be off for ARM9, 10 and StrongARM 
cores.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]