Skip to content

8389912: [REDO] Regression >6% on Crypto-MLDSA.sign on x64 - #32487

Open
dwhite-intel wants to merge 6 commits into
openjdk:masterfrom
dwhite-intel:dwhite-aldc-fix
Open

8389912: [REDO] Regression >6% on Crypto-MLDSA.sign on x64#32487
dwhite-intel wants to merge 6 commits into
openjdk:masterfrom
dwhite-intel:dwhite-aldc-fix

Conversation

@dwhite-intel

@dwhite-intel dwhite-intel commented Aug 21, 2026

Copy link
Copy Markdown

Re-enables cisc-spilling for legacy x86 instructions (the hasPredicateSubset() part) from the original PR (#31686).

The predicate matching code in formsself.cpp insisted that both the original and replacement "instructs" have identical predicates.

This PR loosens this requirement to also allow replacing an instruct with a predicate by an instruct without a predicate - the replacement instruct is logically more general than the original instruct that only applies if the predicate is true.

But now, don't enable cisc-spilling for new three-operand (NDD) APX instructions (the MatchNode::cisc_spill_match() part).

Did tiers 1-3 testing with/without APX enabled.

Performance tests showed that this PR does fix the regression in the MLDSA test (when running with -XX:+UseFPUForSpilling). Another PR in the meantime disabled UseFPUForSpilling by default, which also fixed the regression. This PR on top of that PR gives a boost slightly above R2R variation.

Checking cisc-enabled instructions shows that the NDD instruction are not getting cisc spilled, but the original x86 legacy instructions get the same cisc-spilling support as prior to APX tuning.



Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed (2 reviews required, with at least 1 Reviewer, 1 Author)

Issue

  • JDK-8389912: [REDO] Regression >6% on Crypto-MLDSA.sign on x64 (Bug - P3)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/32487/head:pull/32487
$ git checkout pull/32487

Update a local copy of the PR:
$ git checkout pull/32487
$ git pull https://git.openjdk.org/jdk.git pull/32487/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 32487

View PR using the GUI difftool:
$ git pr show -t 32487

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/32487.diff

Using Webrev

Link to Webrev Comment

@bridgekeeper

bridgekeeper Bot commented Aug 21, 2026

Copy link
Copy Markdown

👋 Welcome back drwhite! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk

openjdk Bot commented Aug 21, 2026

Copy link
Copy Markdown

❗ This change is not yet ready to be integrated.
See the Progress checklist in the description for automated requirements.

@openjdk openjdk Bot changed the title 8389912 [REDO] Regression >6% on Crypto-MLDSA.sign on x64 8389912: [REDO] Regression >6% on Crypto-MLDSA.sign on x64 Aug 21, 2026
@openjdk openjdk Bot added the hotspot-compiler hotspot-compiler-dev@openjdk.org label Aug 21, 2026
@openjdk

openjdk Bot commented Aug 21, 2026

Copy link
Copy Markdown

@dwhite-intel The following label will be automatically applied to this pull request:

  • hotspot-compiler

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk

openjdk Bot commented Aug 21, 2026

Copy link
Copy Markdown

The total number of required reviews for this PR has been set to 2 based on the presence of this label: hotspot-compiler. This can be overridden with the /reviewers command.

@dwhite-intel

Copy link
Copy Markdown
Author

/label hotspot-compiler

@openjdk

openjdk Bot commented Aug 21, 2026

Copy link
Copy Markdown

@dwhite-intel The hotspot-compiler label was already applied.

@dwhite-intel
dwhite-intel marked this pull request as ready for review August 28, 2026 18:36
@openjdk openjdk Bot added the rfr Pull request is ready for review label Aug 28, 2026
@mlbridge

mlbridge Bot commented Aug 28, 2026

Copy link
Copy Markdown

Webrevs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hotspot-compiler hotspot-compiler-dev@openjdk.org rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

1 participant