mirror of https://github.com/golang/go.git
cmd/compile/internal/escape: mark blankLoc as transient
Discarded values never persist, so they can be transiently allocated too. Change-Id: I036ce0c1eea45e437142497bb7df3ecb44b56e52 Reviewed-on: https://go-review.googlesource.com/c/go/+/520256 Auto-Submit: Matthew Dempsky <mdempsky@google.com> Reviewed-by: Than McIntosh <thanm@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com> Run-TryBot: Matthew Dempsky <mdempsky@google.com>
This commit is contained in:
parent
2fcfdb9686
commit
570763e0ec
|
|
@ -130,6 +130,7 @@ func Batch(fns []*ir.Func, recursive bool) {
|
|||
|
||||
var b batch
|
||||
b.heapLoc.escapes = true
|
||||
b.blankLoc.transient = true
|
||||
|
||||
// Construct data-flow graph from syntax trees.
|
||||
for _, fn := range fns {
|
||||
|
|
|
|||
Loading…
Reference in New Issue