mirror of
https://github.com/golang/go.git
synced 2025-10-19 11:03:18 +00:00
cmd/compile/internal/ssa: use built-in min function
This commit is contained in:
parent
835e36fc7f
commit
4c836241c8
1 changed files with 1 additions and 4 deletions
|
@ -593,10 +593,7 @@ func (f *Func) computeZeroMap(select1 []*Value) map[ID]ZeroRegion {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
nptr := v.Type.Elem().Size() / ptrSize
|
nptr := min(64, v.Type.Elem().Size()/ptrSize)
|
||||||
if nptr > 64 {
|
|
||||||
nptr = 64
|
|
||||||
}
|
|
||||||
zeroes[mem.ID] = ZeroRegion{base: v, mask: 1<<uint(nptr) - 1}
|
zeroes[mem.ID] = ZeroRegion{base: v, mask: 1<<uint(nptr) - 1}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue