-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
8333964: RISC-V: C2: Check "requires_strict_order" flag for floating-point add reduction #19649
Conversation
…point add reduction
👋 Welcome back gcao! A progress list of the required criteria for merging this PR into |
@zifeihan This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 4 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@RealFYang) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
Webrevs
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks reasonable to me.
@RealFYang : Hi, Based on #19686, I've updated some of the tests, and test case passed normally. Can you take a look? Thanks |
@RealFYang : Thanks for the review. |
/sponsor |
Going to push as commit e95f092.
Your commit was automatically rebased without conflicts. |
@RealFYang @zifeihan Pushed as commit e95f092. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi, We want to support non strictly-ordered floating-point add reduction, It was implemented by referring to RVV v1.0 [1]. please take a look and have some reviews. Thanks a lot.
We can use the Float256VectorTests.java[2] to print the Opto JIT Code, verify and observe the generation of nodes.
For example, we can use the following command to print the Opto JIT Code of a jtreg test case:
We can observe the specified JIT Code log Float256VectorTests_PrintOptoAssembly.log, which contains the reduce_addF_ordered instruction for the PR implementation.
Similarly, for
reduce_addD_unordered
instruction, we can use thetest/jdk/jdk/incubator/vector/Double256VectorTests.java
test case.Performance testing:
FloatMaxVector.ADDLanes [2] measures the performance of add reduction for floating-point type.
Without Patch:
With Patch:
Correctness testing:
[1] https://github.com/riscv/riscv-v-spec/blob/v1.0/v-spec.adoc
[2] https://github.com/openjdk/panama-vector/blob/vectorIntrinsics/test/micro/org/openjdk/bench/jdk/incubator/vector/operation/FloatMaxVector.java#L316
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19649/head:pull/19649
$ git checkout pull/19649
Update a local copy of the PR:
$ git checkout pull/19649
$ git pull https://git.openjdk.org/jdk.git pull/19649/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19649
View PR using the GUI difftool:
$ git pr show -t 19649
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19649.diff
Webrev
Link to Webrev Comment