On Wed, 11 Oct 2023 23:14:26 GMT, Vladimir Ivanov <vliva...@openjdk.org> wrote:
> Proposed patch has one disadvantage: there's no way to override ergonomics > decisions on AMD CPUs and forcibly enable the intrinsic without rebuilding > the JVM. > > For many other intrinsics there are flags which enable finer grained control > over JVM behavior (e.g., `UseVectorizedHashCodeIntrinsic`). There were some > complaints that there are way to many individual flags to control intrinsics, > so now there's `-XX:ControlIntrinsic=`, but as of now ergonomics doesn't rely > on it to control what intrinsics are enabled/disabled. > > It makes sense to let `-XX:ControlIntrinsic=` overrule > `VM_Version::is_intel()` check and enable the intrinsics when `AVX512DQ` is > supported. May be it could be done as part of https://bugs.openjdk.org/browse/JDK-8317976. ------------- PR Comment: https://git.openjdk.org/jdk/pull/16124#issuecomment-1758699096