8287980: Build is broken due to SuperWordMaxVectorSize when C2 is disabled after JDK-8287697

Reviewed-by: kvn
This commit is contained in:
Jie Fu 2022-06-08 06:55:33 +00:00
parent bf0e625fe0
commit 47d3c2a175

View File

@ -1295,6 +1295,7 @@ void VM_Version::get_processor_features() {
FLAG_SET_DEFAULT(MaxVectorSize, max_vector_size);
}
#if defined(COMPILER2)
if (FLAG_IS_DEFAULT(SuperWordMaxVectorSize)) {
if (FLAG_IS_DEFAULT(UseAVX) && UseAVX > 2 &&
is_intel_skylake() && _stepping >= 5) {
@ -1313,6 +1314,7 @@ void VM_Version::get_processor_features() {
FLAG_SET_DEFAULT(SuperWordMaxVectorSize, MaxVectorSize);
}
}
#endif
#if defined(COMPILER2) && defined(ASSERT)
if (MaxVectorSize > 0) {