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:
Matthew Dempsky 2023-08-15 14:11:37 -07:00 committed by Gopher Robot
parent 2fcfdb9686
commit 570763e0ec

View file

@ -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 {