aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime')
-rw-r--r--src/runtime/mkpreempt.go13
-rw-r--r--src/runtime/preempt_amd64.s7
2 files changed, 0 insertions, 20 deletions
diff --git a/src/runtime/mkpreempt.go b/src/runtime/mkpreempt.go
index 17544d6b21..08500a90d5 100644
--- a/src/runtime/mkpreempt.go
+++ b/src/runtime/mkpreempt.go
@@ -264,19 +264,6 @@ func genAMD64() {
l.save()
- // Apparently, the signal handling code path in darwin kernel leaves
- // the upper bits of Y registers in a dirty state, which causes
- // many SSE operations (128-bit and narrower) become much slower.
- // Clear the upper bits to get to a clean state. See issue #37174.
- // It is safe here as Go code don't use the upper bits of Y registers.
- p("#ifdef GOOS_darwin")
- p("#ifndef hasAVX")
- p("CMPB internal∕cpu·X86+const_offsetX86HasAVX(SB), $0")
- p("JE 2(PC)")
- p("#endif")
- p("VZEROUPPER")
- p("#endif")
-
lSSE.save()
p("CALL ·asyncPreempt2(SB)")
lSSE.restore()
diff --git a/src/runtime/preempt_amd64.s b/src/runtime/preempt_amd64.s
index 94a84fb74c..8e3ed0d7c5 100644
--- a/src/runtime/preempt_amd64.s
+++ b/src/runtime/preempt_amd64.s
@@ -27,13 +27,6 @@ TEXT ·asyncPreempt(SB),NOSPLIT|NOFRAME,$0-0
MOVQ R13, 88(SP)
MOVQ R14, 96(SP)
MOVQ R15, 104(SP)
- #ifdef GOOS_darwin
- #ifndef hasAVX
- CMPB internal∕cpu·X86+const_offsetX86HasAVX(SB), $0
- JE 2(PC)
- #endif
- VZEROUPPER
- #endif
MOVUPS X0, 112(SP)
MOVUPS X1, 128(SP)
MOVUPS X2, 144(SP)