aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorMartin Möhrmann <moehrmann@google.com>2018-08-25 16:53:23 +0200
committerMartin Möhrmann <moehrmann@google.com>2018-08-26 15:27:20 +0000
commiteae5fc88c13d6902a7fe9c595fb02155eb037cbe (patch)
treefbef70b7c160cbed582ba5ec8dbe1e02e299cc7c /src/runtime
parentb7d3e14a5296b17c940983aed0d9d6cb54b912b7 (diff)
downloadgo-eae5fc88c13d6902a7fe9c595fb02155eb037cbe.tar.xz
internal/bytealg: replace use of runtime.support_sse2 with cpu.X86.HasSSE2
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>
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/proc.go1
-rw-r--r--src/runtime/runtime2.go1
2 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 75d309a9f6..73b4a1d9d6 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -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
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go
index e4c6b3b52a..259bb376ae 100644
--- a/src/runtime/runtime2.go
+++ b/src/runtime/runtime2.go
@@ -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