RFR: 8296426: x86: Narrow UseAVX and UseSSE flags [v2]

Claes Redestad redestad at openjdk.org
Tue Nov 8 09:53:52 UTC 2022


> 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.

Claes Redestad has updated the pull request incrementally with one additional commit since the last revision:

  Update JVMCI flag mapping

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/10997/files
  - new: https://git.openjdk.org/jdk/pull/10997/files/38939310..104b2234

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=10997&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=10997&range=00-01

  Stats: 2 lines in 1 file changed: 0 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/10997.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10997/head:pull/10997

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


More information about the hotspot-compiler-dev mailing list