This is the mail archive of the gcc@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: Address mode offset spill


daniel tian wrote:
>> The compiler should work with or without defining LEGITIMIZE_RELOAD_ADDRESS.
>>   It's often difficult to write a correct LEGITIMIZE_RELOAD_ADDRESS without
>> knowing the internals of how reload works.  Therefore, I strongly recommend
>> first writing the port without LEGITIMIZE_RELOAD_ADDRESS -- after the port
>> is working correctly you can go back and add LEGITIMIZE_RELOAD_ADDRESS to
>> generate more efficient code.
>>
>>     
>
> Do you mean that I should not write any reload code including
> secondary reload? And if it is going to work fine, then keep working
> on reload part?
>   
You should write your secondary reload code, but not
LEGITIMIZE_RELOAD_ADDRESS.

After your port is working well, then define LEGITIMIZE_RELOAD_ADDRESS
to optimize the code better.

jeff


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