Fix PR37916 (unnecessary spilling)

Jakub Jelinek jakub@redhat.com
Thu Nov 22 13:35:00 GMT 2018


On Thu, Nov 22, 2018 at 01:30:03PM +0000, Michael Matz wrote:
> On Wed, 21 Nov 2018, Richard Biener wrote:
> 
> > then this leads to wrong debug info showing a value for 'a' that never 
> > existed.
> 
> var-tracking was specifically created so that the base-vars of SSA names 
> aren't necessary for debug info anymore ...

Not to my knowledge.  The original var-tracking used that information
almost exclusively (whatever ends up in REG_EXPR/MEM_EXPR and that is based
on the base vars of SSA_NAMEs).
VTA doesn't need that for vars for which there are debug stmts, but
otherwise it is still used.

	Jakub



More information about the Gcc-patches mailing list