cmd/compile: better name for BloopWalk

Use bloop.Walk instead of BloopWalk for better naming.

Change-Id: I60fb7abf8cdab2c7641c69d1cc06c1d6bef1600b
Reviewed-on: https://go-review.googlesource.com/c/go/+/728960
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Cuong Manh Le <cuong.manhle.vn@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Junyang Shao <shaojunyang@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
This commit is contained in:
Cuong Manh Le 2025-12-10 17:46:07 +07:00 committed by Gopher Robot
parent 2d37c20778
commit 540ccca0a7
2 changed files with 3 additions and 3 deletions

View file

@ -325,7 +325,7 @@ func (e editor) edit(n ir.Node) ir.Node {
return n
}
// BloopWalk performs a walk on all functions in the package
// Walk performs a walk on all functions in the package
// if it imports testing and wrap the results of all qualified
// statements in a runtime.KeepAlive intrinsic call. See package
// doc for more details.
@ -333,7 +333,7 @@ func (e editor) edit(n ir.Node) ir.Node {
// for b.Loop() {...}
//
// loop's body.
func BloopWalk(pkg *ir.Package) {
func Walk(pkg *ir.Package) {
hasTesting := false
for _, i := range pkg.Imports {
if i.Path == "testing" {

View file

@ -244,7 +244,7 @@ func Main(archInit func(*ssagen.ArchInfo)) {
}
// Apply bloop markings.
bloop.BloopWalk(typecheck.Target)
bloop.Walk(typecheck.Target)
// Interleaved devirtualization and inlining.
base.Timer.Start("fe", "devirtualize-and-inline")