Reload codegen improvement

Bernd Schmidt bernds@codesourcery.com
Thu Jan 23 13:05:00 GMT 2014


On 01/23/2014 10:44 AM, Chung-Lin Tang wrote:
> On 14/1/8 12:22 AM, Bernd Schmidt wrote:
>> This fixes a problem identified by Chung-Lin. Once reload is done, all
>> equivalencing insns for pseudos that didn't get a hard reg but could be
>> eliminated using their REG_EQUIV are deleted. However, we still can
>> produce reloads and reload insns for them in certain cases, leading to
>> unnecessary spilling. This patch corrects this by making sure we use
>> identical tests when deciding whether to ignore an insn while reloading,
>> and whether to delete it afterwards.
>>
>> Bootstrapped and tested on x86_64-linux (with lra_p disabled). Chung-Lin
>> says he's tested it as well, I think on arm (probably with something 4.8
>> based). Will commit in a few days if no objections.
>>
> Hi Bernd, this does not seem to be committed yet.

Yeah - I decided this probably ought to wait for stage 1.


Bernd




More information about the Gcc-patches mailing list