mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
cmd/compile/internal/ssa: remove unused round function
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>
This commit is contained in:
parent
835e36fc7f
commit
9d915d6870
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user