]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: make encoding/binary appends cheaper to inline
authorWayne Zuo <wdvxdr@golangcn.org>
Thu, 15 Sep 2022 07:14:52 +0000 (15:14 +0800)
committerGopher Robot <gobot@golang.org>
Thu, 15 Sep 2022 21:05:02 +0000 (21:05 +0000)
commit629c0b3a6e3e2ff11c9c989a8dcd1a538cdd76f4
tree57d947bdb7fcf8980a83678eecf593c3e6912024
parent5760fde4df4f1e9303de122ae3b5ac80b7ef681d
cmd/compile: make encoding/binary appends cheaper to inline

Go 1.19 introduce new append-like APIs in package encoding/binary, this
change teaches the inliner to treat calls to these methods as cheap, so
that code using them will be more inlineable.

Updates #42958

Change-Id: Ie3dd4906e285430f435bdedbf8a11fdffce9302d
Reviewed-on: https://go-review.googlesource.com/c/go/+/431015
Auto-Submit: Keith Randall <khr@golang.org>
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Auto-Submit: Jenny Rakoczy <jenny@golang.org>
Reviewed-by: Jenny Rakoczy <jenny@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Run-TryBot: Jenny Rakoczy <jenny@golang.org>
Run-TryBot: Wayne Zuo <wdvxdr@golangcn.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/inline/inl.go
test/inline_endian.go