Skip to content

Commit

Permalink
internal/goexperiment: add "NewInliner" experiment
Browse files Browse the repository at this point in the history
Add "NewInliner" to the list of Go experiments, used for enabling an
updated/improved version of the function inlining phase within the Go
compiler. 

Updates #61502.

Change-Id: I3218b3ae59a2d05156e8017cd9ee1d7b66cad031
Reviewed-on: https://go-review.googlesource.com/c/go/+/511555
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
thanm committed Aug 2, 2023
1 parent ce5e37e commit fbf9076
Showing 3 changed files with 30 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/internal/goexperiment/exp_newinliner_off.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 13 additions & 0 deletions src/internal/goexperiment/exp_newinliner_on.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions src/internal/goexperiment/flags.go
Original file line number Diff line number Diff line change
@@ -109,4 +109,8 @@ type Flags struct {
// CacheProg adds support to cmd/go to use a child process to implement
// the build cache; see https://github.com/golang/go/issues/59719.
CacheProg bool

// NewInliner enables a new+improved version of the function
// inlining phase within the Go compiler.
NewInliner bool
}

0 comments on commit fbf9076

Please sign in to comment.