]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc: add release note fragment on inlining changes
authorThan McIntosh <thanm@google.com>
Wed, 13 Dec 2023 16:37:46 +0000 (11:37 -0500)
committerThan McIntosh <thanm@google.com>
Thu, 14 Dec 2023 14:30:32 +0000 (14:30 +0000)
Add some material to the "compiler" portion of the release
notes describing the 1.22 changes to the inliner.

For #61422.
Updates #61502.

Change-Id: Ic7f1cb7f70752446d2465ea3da6bd7488436342b
Reviewed-on: https://go-review.googlesource.com/c/go/+/549395
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>

doc/go1.22.html

index 1ac0e7e6ee1d584403afa6663c6554c56e96da78..c4337f1fe77677c34c2cbfe536874dd20bc7895d 100644 (file)
@@ -219,6 +219,18 @@ defer func() {
   14% improvement from enabling PGO.
 </p>
 
+<p><!-- https://go.dev/cl/528321 -->
+  The compiler now interleaves devirtualization and inlining, so interface
+  method calls are better optimized.
+</p>
+
+<p><!-- https://go.dev/issue/61502 -->
+  Go 1.22 also includes a preview of an enhanced implementation of the compiler's inlining phase that uses heuristics to boost inlinability at call sites deemed "important" (for example, in loops) and discourage inlining at call sites deemed "unimportant" (for example, on panic paths).
+  Building with <code>GOEXPERIMENT=newinliner</code> enables the new call-site
+  heuristics; see <a href="https://go.dev/issue/61502">issue #61502</a> for
+  more info and to provide feedback.
+</p>
+
 <h2 id="linker">Linker</h2>
 
 <p><!-- CL 493136 -->