]> Cypherpunks repositories - gostls13.git/commitdiff
[dev.simd] cmd/compile: remove unnecessary code from early simd prototype
authorCherry Mui <cherryyz@google.com>
Fri, 26 Sep 2025 17:44:48 +0000 (13:44 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 26 Sep 2025 18:06:35 +0000 (11:06 -0700)
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>

src/cmd/compile/internal/types/size.go

index a4ec67e4637e0c5fc506354f3e168796362db333..0162164679287677e716573f3defcaa8a2610a9c 100644 (file)
@@ -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.