Integrated: 8296426: x86: Narrow UseAVX and UseSSE flags

Claes Redestad redestad at openjdk.org
Tue Nov 8 23:44:30 UTC 2022


On Fri, 4 Nov 2022 20:28:57 GMT, Claes Redestad <redestad at openjdk.org> wrote:

> This patch narrows down the UseAVX and UseSSE flags to their actual supported range and uses int rather than intx for their type. This avoids need for some silly casts, and surprisingly has a small beneficial effect to binary size (-4kb libjvm on linux-x64)
> 
> This changes behavior of previously in-range values: `-XX:UseAVX=4` would emit a strongly worded warning, but with the proposed change we'll instead terminate the JVM with an error similar to `-XX:UseAVX=100`. I believe this is too trivial for a CSR, since it only changes behavior for unsupported values.

This pull request has now been integrated.

Changeset: d9b25e86
Author:    Claes Redestad <redestad at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/d9b25e860b0d73f5fc0890c006bfad0614b23d5c
Stats:     14 lines in 4 files changed: 0 ins; 0 del; 14 mod

8296426: x86: Narrow UseAVX and UseSSE flags

Reviewed-by: vlivanov, kvn

-------------

PR: https://git.openjdk.org/jdk/pull/10997


More information about the hotspot-compiler-dev mailing list