Bernd Schmidt <bernds_...@t-online.de> writes:

>> But I don't know that gcc will implement the particular optimization
>> that you are looking for.  I'm not aware of any other processor which is
>> able to load a large constant in a single instruction, but for which an
>> add instruction is cheaper if there is a similar constant already
>> available.  You may need to implement this as a peephole or as a machine
>> specific pass.
>
> Take a look at reload_cse_move2add.

Oh yeah, I completely forgot about that.  Thanks.

Ian

Reply via email to