Re: Avoiding some garbage rtl from instantiate_virtual_regs

2014-05-17 Thread Richard Sandiford
Jeff Law writes: >> Index: gcc/emit-rtl.h >> === >> --- gcc/emit-rtl.h 2014-05-15 11:27:06.000259353 +0100 >> +++ gcc/emit-rtl.h 2014-05-16 09:11:42.479556294 +0100 >> @@ -52,10 +52,10 @@ extern tree get_spill_slot_decl (bool); >>

Re: Avoiding some garbage rtl from instantiate_virtual_regs

2014-05-16 Thread Jeff Law
On 05/16/14 02:47, Richard Sandiford wrote: It seems that in a typical -O0 compile the amount of rtl that starts out as needed but becomes garbage is only slightly less than half of the total amount created. One of the big offenders is the vregs pass, which creates new PLUSes when instanstiating

Avoiding some garbage rtl from instantiate_virtual_regs

2014-05-16 Thread Richard Sandiford
It seems that in a typical -O0 compile the amount of rtl that starts out as needed but becomes garbage is only slightly less than half of the total amount created. One of the big offenders is the vregs pass, which creates new PLUSes when instanstiating a virtual register + a constant and which cre