]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: small inlining tweak for range-func panics
authorDavid Chase <drchase@google.com>
Thu, 9 Nov 2023 16:43:13 +0000 (11:43 -0500)
committerDavid Chase <drchase@google.com>
Wed, 15 Nov 2023 20:08:10 +0000 (20:08 +0000)
commit2380862c7c05666f9bfe799fb1222cb4e5631541
treee05b871abf67016573ea1e51672d3603ee4dc6fc
parentb5e31780b612c1317c9853f9e59df5c1bd0b3552
cmd/compile: small inlining tweak for range-func panics

treat the panic, like a panic.  It helps with inlining,
and thus reduced closure allocation and performance, for
many examples of function range iterators.

Change-Id: Ib1a656cdfa56eb2dee400089c4c94ac14f1d2104
Reviewed-on: https://go-review.googlesource.com/c/go/+/541235
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/cmd/compile/internal/inline/inl.go