]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: restore more missing -m=2 escape analysis details
authorMatthew Dempsky <mdempsky@google.com>
Thu, 7 Nov 2019 20:32:30 +0000 (12:32 -0800)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 7 Nov 2019 21:59:16 +0000 (21:59 +0000)
commit4cde749f633753cf59d0cfc912351e1b1def2b4f
tree7f239c16efb59e2c18a00aa8a5c0338f4a8a5194
parenta930fede7386fd3583553b523fd6f7fa5fef1244
cmd/compile: restore more missing -m=2 escape analysis details

This CL also restores analysis details for (1) expressions that are
directly heap allocated because of being too large for the stack or
non-constant in size, and (2) for assignments that we short circuit
because we flow their address to another escaping object.

No change to normal compilation behavior. Only adds additional Printfs
guarded by -m=2.

Updates #31489.

Change-Id: I43682195d389398d75ced2054e29d9907bb966e7
Reviewed-on: https://go-review.googlesource.com/c/go/+/205917
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/esc.go
src/cmd/compile/internal/gc/escape.go