From: Cherry Mui Date: Fri, 26 Sep 2025 17:44:48 +0000 (-0400) Subject: [dev.simd] cmd/compile: remove unnecessary code from early simd prototype X-Git-Tag: go1.26rc1~147^2~55 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b4d1e018a8;p=gostls13.git [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 LUCI-TryBot-Result: Go LUCI --- diff --git a/src/cmd/compile/internal/types/size.go b/src/cmd/compile/internal/types/size.go index a4ec67e463..0162164679 100644 --- a/src/cmd/compile/internal/types/size.go +++ b/src/cmd/compile/internal/types/size.go @@ -411,10 +411,6 @@ func CalcSize(t *Type) { } CalcStructSize(t) w = t.width - if t.IsSIMD() { // XXX - t.intRegs = 0 - t.floatRegs = 1 - } // make fake type to check later to // trigger function argument computation.