]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/ssa: remove unused round function
authorMarcel Meyer <mm.marcelmeyer@gmail.com>
Thu, 10 Apr 2025 21:52:43 +0000 (21:52 +0000)
committerGopher Robot <gobot@golang.org>
Thu, 10 Apr 2025 23:37:57 +0000 (16:37 -0700)
Change-Id: I15ee74ab0be0cd996a74e6233b39e0953da3f327
GitHub-Last-Rev: dc41b1027a2b07a227705303dc02a85433756eab
GitHub-Pull-Request: golang/go#73324
Reviewed-on: https://go-review.googlesource.com/c/go/+/664696
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/cmd/compile/internal/ssa/writebarrier.go

index bf04f1b5c228d55b7cab0300021c06f5eb213195..aed24feda2bf385f89de69cf964177aa54ec3010 100644 (file)
@@ -711,11 +711,6 @@ func wbcall(pos src.XPos, b *Block, fn *obj.LSym, sp, mem *Value, args ...*Value
        return b.NewValue1I(pos, OpSelectN, types.TypeMem, 0, call)
 }
 
-// round to a multiple of r, r is a power of 2.
-func round(o int64, r int64) int64 {
-       return (o + r - 1) &^ (r - 1)
-}
-
 // IsStackAddr reports whether v is known to be an address of a stack slot.
 func IsStackAddr(v *Value) bool {
        for v.Op == OpOffPtr || v.Op == OpAddPtr || v.Op == OpPtrIndex || v.Op == OpCopy {