[dev.simd] cmd/compile: remove unnecessary code from early simd prototype

The code overwrites a SIMD vector's register numbers is from an
early prototype. Now CalcStructSize and simdify take care of it.

Change-Id: I15415f796ddb04623b8cabdd2e39cb9c9593c72e
Reviewed-on: https://go-review.googlesource.com/c/go/+/707136
Reviewed-by: Junyang Shao <shaojunyang@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Cherry Mui 2025-09-26 13:44:48 -04:00
parent 578777bf7c
commit b4d1e018a8

View file

@ -411,10 +411,6 @@ func CalcSize(t *Type) {
} }
CalcStructSize(t) CalcStructSize(t)
w = t.width w = t.width
if t.IsSIMD() { // XXX
t.intRegs = 0
t.floatRegs = 1
}
// make fake type to check later to // make fake type to check later to
// trigger function argument computation. // trigger function argument computation.