• Keith Randall's avatar
    [dev.ssa] cmd/compile: remember names of values · c24681ae
    Keith Randall authored
    For debugging, spill values to named variables instead of autotmp_
    variables if possible.  We do this by keeping a name -> value map
    for each function, keep it up-to-date during deadcode elim, and use
    it to override spill decisions in stackalloc.
    
    It might even make stack frames a bit smaller, as it makes it easy
    to identify a set of spills which are likely not to interfere.
    
    This just works for one-word variables for now.  Strings/slices
    will be a separate CL.
    
    Change-Id: Ie89eba8cab16bcd41b311c479ec46dd7e64cdb67
    Reviewed-on: https://go-review.googlesource.com/16336
    Run-TryBot: Keith Randall <khr@golang.org>
    Reviewed-by: 's avatarDavid Chase <drchase@google.com>
    c24681ae
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...