Skip to content

Commit 9d87918

Browse files
author
Hamlin Li
committed
8335191: RISC-V: verify perf of chacha20
Reviewed-by: fyang
1 parent 6e228ce commit 9d87918

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/hotspot/cpu/riscv/vm_version_riscv.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,9 @@ void VM_Version::initialize() {
252252
}
253253

254254
// ChaCha20
255-
if (UseRVV) {
255+
if (UseRVV && MaxVectorSize >= 32) {
256+
// performance tests on hardwares (MaxVectorSize == 16, 32) show that
257+
// it brings regression when MaxVectorSize == 16.
256258
if (FLAG_IS_DEFAULT(UseChaCha20Intrinsics)) {
257259
FLAG_SET_DEFAULT(UseChaCha20Intrinsics, true);
258260
}

0 commit comments

Comments
 (0)