]> Cypherpunks repositories - gostls13.git/commitdiff
internal/bytealg: replace use of runtime.support_sse2 with cpu.X86.HasSSE2
authorMartin Möhrmann <moehrmann@google.com>
Sat, 25 Aug 2018 14:53:23 +0000 (16:53 +0200)
committerMartin Möhrmann <moehrmann@google.com>
Sun, 26 Aug 2018 15:27:20 +0000 (15:27 +0000)
This makes the runtime.support_sse2 variable unused
so it is removed in this CL too.

Change-Id: Ia8b9ffee7ac97128179f74ef244b10315e44c234
Reviewed-on: https://go-review.googlesource.com/131455
Run-TryBot: Martin Möhrmann <moehrmann@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/internal/bytealg/compare_386.s
src/runtime/proc.go
src/runtime/runtime2.go

index 89296e16905e4442e54616c0f910f147fb60022f..f73e3f8b356110939a7cf58cb340cbd4ff887b9c 100644 (file)
@@ -45,7 +45,7 @@ TEXT cmpbody<>(SB),NOSPLIT,$0-0
        JEQ     allsame
        CMPL    BP, $4
        JB      small
-       CMPB    runtime·support_sse2(SB), $1
+       CMPB    internal∕cpu·X86+const_offsetX86HasSSE2(SB), $1
        JNE     mediumloop
 largeloop:
        CMPL    BP, $16
index 75d309a9f66d1f1307ace7c2cc91c5350ab88017..73b4a1d9d62aabd7d7d4ff68ad37b11f4d08f051 100644 (file)
@@ -510,7 +510,6 @@ func cpuinit() {
        // Support cpu feature variables are used in code generated by the compiler
        // to guard execution of instructions that can not be assumed to be always supported.
        support_popcnt = cpu.X86.HasPOPCNT
-       support_sse2 = cpu.X86.HasSSE2
        support_sse41 = cpu.X86.HasSSE41
 
        arm64_support_atomics = cpu.ARM64.HasATOMICS
index e4c6b3b52a7e69517a4b48b1fb990164d94288dc..259bb376ae2fd05df8ca03f40e91fe403ffb078b 100644 (file)
@@ -847,7 +847,6 @@ var (
        // Set in runtime.cpuinit.
        // TODO: deprecate these; use internal/cpu directly.
        support_popcnt        bool
-       support_sse2          bool
        support_sse41         bool
        arm64_support_atomics bool