Skip to content

Commit b5a6d9b

Browse files
thanmezz-no
authored andcommitted
doc: add release note fragment on inlining changes
Add some material to the "compiler" portion of the release notes describing the 1.22 changes to the inliner. For golang#61422. Updates golang#61502. Change-Id: Ic7f1cb7f70752446d2465ea3da6bd7488436342b Reviewed-on: https://go-review.googlesource.com/c/go/+/549395 Reviewed-by: David Chase <[email protected]> Reviewed-by: Matthew Dempsky <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent 13c9cda commit b5a6d9b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/go1.22.html

+12
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,18 @@ <h2 id="compiler">Compiler</h2>
219219
14% improvement from enabling PGO.
220220
</p>
221221

222+
<p><!-- https://go.dev/cl/528321 -->
223+
The compiler now interleaves devirtualization and inlining, so interface
224+
method calls are better optimized.
225+
</p>
226+
227+
<p><!-- https://go.dev/issue/61502 -->
228+
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).
229+
Building with <code>GOEXPERIMENT=newinliner</code> enables the new call-site
230+
heuristics; see <a href="https://go.dev/issue/61502">issue #61502</a> for
231+
more info and to provide feedback.
232+
</p>
233+
222234
<h2 id="linker">Linker</h2>
223235

224236
<p><!-- CL 493136 -->

0 commit comments

Comments
 (0)