Skip to content

Commit

Permalink
8287980: Build is broken due to SuperWordMaxVectorSize when C2 is dis…
Browse files Browse the repository at this point in the history
…abled after JDK-8287697

Reviewed-by: kvn
  • Loading branch information
DamonFool committed Jun 8, 2022
1 parent bf0e625 commit 47d3c2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/hotspot/cpu/x86/vm_version_x86.cpp
Expand Up @@ -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) {
Expand All @@ -1313,6 +1314,7 @@ void VM_Version::get_processor_features() {
FLAG_SET_DEFAULT(SuperWordMaxVectorSize, MaxVectorSize);
}
}
#endif

#if defined(COMPILER2) && defined(ASSERT)
if (MaxVectorSize > 0) {
Expand Down

1 comment on commit 47d3c2a

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.