cmd/compile/internal/ssa: remove unused round function

This commit is contained in:
Marcel Meyer 2025-04-10 22:21:47 +02:00
parent 835e36fc7f
commit dc41b1027a
No known key found for this signature in database
1 changed files with 0 additions and 5 deletions

View 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 {