mirror of
https://github.com/golang/go.git
synced 2025-05-05 15:43:04 +00:00
cmd/compile/internal/ssa: use built-in min function
Change-Id: Id4276adea58afdf98c6f9b547cca0546fc659ae1 GitHub-Last-Rev: 4c836241c86d51c69330153dea1c5679958c37f9 GitHub-Pull-Request: golang/go#73323 Reviewed-on: https://go-review.googlesource.com/c/go/+/664695 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@google.com> Reviewed-by: Keith Randall <khr@golang.org> Auto-Submit: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
9d915d6870
commit
037112464b
@ -593,10 +593,7 @@ func (f *Func) computeZeroMap(select1 []*Value) map[ID]ZeroRegion {
|
||||
continue
|
||||
}
|
||||
|
||||
nptr := v.Type.Elem().Size() / ptrSize
|
||||
if nptr > 64 {
|
||||
nptr = 64
|
||||
}
|
||||
nptr := min(64, v.Type.Elem().Size()/ptrSize)
|
||||
zeroes[mem.ID] = ZeroRegion{base: v, mask: 1<<uint(nptr) - 1}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user