From 525b20fce0acd393f31fd37fe1f05f9d32577f77 Mon Sep 17 00:00:00 2001 From: Aleksey Shipilev Date: Wed, 12 Jan 2022 08:32:08 +0000 Subject: [PATCH] 8279676: Dubious YMM register clearing in x86_64 arraycopy stubs Reviewed-by: kvn, vlivanov, neliasso --- src/hotspot/cpu/x86/stubGenerator_x86_64.cpp | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/hotspot/cpu/x86/stubGenerator_x86_64.cpp b/src/hotspot/cpu/x86/stubGenerator_x86_64.cpp index 8e6257cb786..8b7188ca42c 100644 --- a/src/hotspot/cpu/x86/stubGenerator_x86_64.cpp +++ b/src/hotspot/cpu/x86/stubGenerator_x86_64.cpp @@ -1221,11 +1221,6 @@ class StubGenerator: public StubCodeGenerator { } __ addptr(qword_count, 4); __ BIND(L_end); - if (UseAVX >= 2) { - // clean upper bits of YMM registers - __ vpxor(xmm0, xmm0); - __ vpxor(xmm1, xmm1); - } } else { // Copy 32-bytes per iteration __ BIND(L_loop); @@ -1299,11 +1294,6 @@ class StubGenerator: public StubCodeGenerator { } __ subptr(qword_count, 4); __ BIND(L_end); - if (UseAVX >= 2) { - // clean upper bits of YMM registers - __ vpxor(xmm0, xmm0); - __ vpxor(xmm1, xmm1); - } } else { // Copy 32-bytes per iteration __ BIND(L_loop);