]> Cypherpunks repositories - gostls13.git/commit
cmd: use built-in clear for maps instead of range+delete
authorKeith Randall <khr@golang.org>
Tue, 3 Sep 2024 20:53:37 +0000 (13:53 -0700)
committerKeith Randall <khr@golang.org>
Tue, 3 Sep 2024 22:29:23 +0000 (22:29 +0000)
commit0c1627812406a76ac256a08bee985a9817372446
treefdfda69f264b7721d30e16110a195f00932295c5
parentf90f7e90b3239562c33252bb34354281696b9fdb
cmd: use built-in clear for maps instead of range+delete

Now that we're bootstrapping from a toolchain that has the clear builtin.

Update #64751

Change-Id: Ia86d96c253c9f7c66131cd02048a493047569641
Reviewed-on: https://go-review.googlesource.com/c/go/+/610237
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/cmd/compile/internal/inline/inlheur/scoring.go
src/cmd/compile/internal/liveness/mergelocals.go
src/cmd/compile/internal/liveness/plive.go
src/cmd/compile/internal/ssa/deadstore.go
src/cmd/compile/internal/ssa/debug.go
src/cmd/compile/internal/ssa/regalloc.go
src/cmd/compile/internal/ssagen/ssa.go