[PATCH] Provide a hook for target to disable register renaming for some instructions

Jie Zhang jie@codesourcery.com
Wed Jun 30 19:55:00 GMT 2010


On 07/01/2010 02:03 AM, Richard Henderson wrote:
> On 06/30/2010 10:53 AM, Jie Zhang wrote:
>> When compiler an application for ARM, the GAS issued a warning:
>>
>> Warning: register range not in ascending order
>>
>> for the instruction
>>
>> push    {ip, r3, r4, lr}
>>
>> Before regrename pass, this instruction looked like
>>
>> push    {r0, r3, r4, lr}
>
> Doesn't it work just as well to simply remove the register
> constraint from the push_multi instruction?  Without that
> the regrename pass won't get a register class for the
> operand and will leave it alone.
>
Thanks! I never thought about it. It works. I will do a full testing.


Jie



More information about the Gcc-patches mailing list