]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/compile/internal/inl: use func-level "never returns" flag
authorThan McIntosh <thanm@google.com>
Tue, 1 Aug 2023 16:04:12 +0000 (12:04 -0400)
committerThan McIntosh <thanm@google.com>
Fri, 15 Sep 2023 12:45:33 +0000 (12:45 +0000)
commiteac1f3e46115b42e564b4160ae38fec9872e68d0
treed237843d6b0979100e51a2a5372404a0d730c2e0
parentdab9c502c4192d90b6cef6c9e54dc98f2aee932f
cmd/compile/internal/inl: use func-level "never returns" flag

Make use of the "never returns" flag bit in ir.Func when computing
function properties: update the bit when we're done looking at a given
function, and read the bit from imported functions during flag
analysis. The advantage of using the ir.Func flag is that it will get
set (and will propagate through to export data) for all functions,
nost just those that are inline candidates.

Change-Id: I7002364b2c4ff5424ed70748fad87fad1a9e4786
Reviewed-on: https://go-review.googlesource.com/c/go/+/518257
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/inline/inlheur/analyze.go
src/cmd/compile/internal/inline/inlheur/analyze_func_flags.go