Delete moves that are turned into no-ops by reload_cse

Richard Sandiford richard@codesourcery.com
Mon Feb 27 15:29:00 GMT 2006


Bernd Schmidt <bernds_cb1@t-online.de> writes:
> Richard Sandiford wrote:
>> As well as doing CSE, reload_cse has code to delete no-op moves.
>> What's slightly odd is that this code is skipped for moves that
>> were simplified by CSE itself.
>> 
>> This patch fixes that.  I checked that postreload now removes the
>> no-op that Steven described here:
>> 
>>     http://gcc.gnu.org/ml/gcc/2006-02/msg00650.html
>
> Shouldn't we rather find out why inheritance is broken?

See my message on gcc@ about that.  But do you object to the patch?
If reload_cse is going to delete no-op moves, why should it only
remove those that exist before postreload?

Richard



More information about the Gcc-patches mailing list