aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2023-10-27 08:58:16 -0400
committerThan McIntosh <thanm@google.com>2023-11-21 16:30:33 +0000
commitbbcd85528cbad2dca72378181cb230e59a43ef80 (patch)
tree3fa80666faf45e9c3555aeaba1d3520af2b07bca /src/testing
parent8eecf26e3f13192be66e908cc55646b7f71c568c (diff)
downloadgo-bbcd85528cbad2dca72378181cb230e59a43ef80.tar.xz
cmd/compile/internal/inline: rework use of ir.StaticValue
When running the code to compute function properties that feed inlining heuristics, the existing heuristics implementation makes fairly extensive use of ir.StaticValue and ir.Reassigned to sharpen the analysis. These calls turn out to cause a significant compile time increase, due to the fact that each call can potentially walk every node in the IR for the function. To help with this problem, switch the heuristics code over to using the new "batch mode" reassignment helper added in the previous CL. Change-Id: Ib15a62416134386e34b7cfa1130a4b413a37b225 Reviewed-on: https://go-review.googlesource.com/c/go/+/537977 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Matthew Dempsky <mdempsky@google.com>
Diffstat (limited to 'src/testing')
0 files changed, 0 insertions, 0 deletions