]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile: enable more inlining for unified IR
authorMatthew Dempsky <mdempsky@google.com>
Thu, 18 Aug 2022 12:20:16 +0000 (05:20 -0700)
committerMatthew Dempsky <mdempsky@google.com>
Thu, 18 Aug 2022 17:26:40 +0000 (17:26 +0000)
commit52016be3f4e6deba54020ad8c969f1e2dba1eee3
treef21300cf8800232712e559cd4068b4690d5edeb6
parentd6294e00f029d93b8552827bce1f24f67458d3f2
cmd/compile: enable more inlining for unified IR

The non-unified frontend had repeated issues with inlining and
generics (#49309, #51909, #52907), which led us to substantially
restrict inlining when shape types were present.

However, these issues are evidently not present in unified IR's
inliner, and the safety restrictions added for the non-unified
frontend can simply be disabled in unified mode.

Fixes #54497.

Change-Id: I8e6ac9f3393c588bfaf14c6452891b9640a9d1bd
Reviewed-on: https://go-review.googlesource.com/c/go/+/424775
Reviewed-by: Cuong Manh Le <cuong.manhle.vn@gmail.com>
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/cmd/compile/internal/inline/inl.go
test/run.go
test/typeparam/issue49309.go
test/typeparam/issue54497.go [new file with mode: 0644]