8343827: RISC-V: set AlignVector as false if applicable to enable SLP

Reviewed-by: fyang, luhenry
This commit is contained in:
Hamlin Li 2024-11-20 08:49:35 +00:00
parent 189fc8ddef
commit 587f2b4b4d

View File

@ -150,11 +150,12 @@ void VM_Version::common_initialize() {
}
if (FLAG_IS_DEFAULT(AvoidUnalignedAccesses)) {
if (unaligned_access.value() != MISALIGNED_FAST) {
FLAG_SET_DEFAULT(AvoidUnalignedAccesses, true);
} else {
FLAG_SET_DEFAULT(AvoidUnalignedAccesses, false);
}
FLAG_SET_DEFAULT(AvoidUnalignedAccesses,
unaligned_access.value() != MISALIGNED_FAST);
}
if (FLAG_IS_DEFAULT(AlignVector)) {
FLAG_SET_DEFAULT(AlignVector, AvoidUnalignedAccesses);
}
// See JDK-8026049