[PATCH, ARM][1/4] New RTL patterns for LDRD/STRD in Thumb mode

Richard Earnshaw rearnsha@arm.com
Fri Oct 19 15:52:00 GMT 2012


On 19/10/12 16:20, Greta Yorsh wrote:

> Removed the condition "!optimize_function_for_size_p (cfun))".
>
> The condition "current_tune->prefer_ldrd_strd" is needed because the
> patterns
> for LDRD/STRD appear before the patterns for LDM/STM that can match the same
> RTL
> (two register in the list). Condition "reload_completed" does not help with
> it
> because peephole optimizations in ldmstm.md may (after reload) create new
> RTL insn
> that match this pattern.
>

The point of the reload_completed is that these patterns have the 
potential to cause some problems if they somehow matched during earlier 
passes and the address base was an eliminable register.





More information about the Gcc-patches mailing list