]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: call fninit earlier
authorMatthew Dempsky <mdempsky@google.com>
Mon, 14 Sep 2020 19:56:37 +0000 (12:56 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Mon, 14 Sep 2020 23:42:44 +0000 (23:42 +0000)
commitf4936d09fd5a1fff890d63ee2ab9543243dc4da6
treeb1099e69d2ac27b34a6ab87bc56d8b66ffcfc984
parent237410547bb81ae3c58e9c5bf0cf59edc989e243
cmd/compile: call fninit earlier

This allows the global initializers function to go through normal
mid-end optimizations (e.g., inlining, escape analysis) like any other
function.

Updates #33485.

Change-Id: I9bcfe98b8628d1aca09b4c238d8d3b74c69010a5
Reviewed-on: https://go-review.googlesource.com/c/go/+/254839
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/init.go
src/cmd/compile/internal/gc/main.go
test/inline.go