]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: provide more names for stack slots
authorDavid Chase <drchase@google.com>
Wed, 18 Oct 2017 20:32:01 +0000 (16:32 -0400)
committerDavid Chase <drchase@google.com>
Wed, 1 Nov 2017 16:10:25 +0000 (16:10 +0000)
commita03480905b0e22f84fb700fefadd73fde2f8507f
treecf9c91cc5428f824167915acca98e59dd892a21b
parent018642d6cf2321f9209dfa59332daacc721d03b0
cmd/compile: provide more names for stack slots

Recurse into structs/arrays of one element when
assigning names.

Test incorporated into existing end-to-end debugger test,
hand-verified that it fails without this CL.

Fixes #19868

Revives CL 40010
Old-Change-Id: I0266e58af975fb64cfa17922be383b70f0a7ea96

Change-Id: I122ac2375931477769ec8d763607c1ec42d78a7f
Reviewed-on: https://go-review.googlesource.com/71731
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
src/cmd/compile/internal/ssa/debug_test.go
src/cmd/compile/internal/ssa/decompose.go
src/cmd/compile/internal/ssa/gen/generic.rules
src/cmd/compile/internal/ssa/rewritegeneric.go
src/cmd/compile/internal/ssa/testdata/hist.dbg-dlv.nexts
src/cmd/compile/internal/ssa/testdata/hist.dbg-gdb.nexts
src/cmd/compile/internal/ssa/testdata/hist.go
src/cmd/compile/internal/ssa/testdata/hist.opt-dlv.nexts
src/cmd/compile/internal/ssa/testdata/hist.opt-gdb.nexts