8309332: RISC-V: Improve PrintOptoAssembly output of vector nodes#14279
8309332: RISC-V: Improve PrintOptoAssembly output of vector nodes#14279zifeihan wants to merge 4 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back gcao! A progress list of the required criteria for merging this PR into |
Webrevs
|
|
@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 |
|
@RealFYang @yhzhu20 Thanks for the review. |
|
/sponsor |
|
Going to push as commit 08c91c2.
Your commit was automatically rebased without conflicts. |
|
@RealFYang @zifeihan Pushed as commit 08c91c2. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi, Currently in the vector node implementation, some of the instruction formats are part of the rvv assembly instructions, for which the assembly instructions are also incomplete, such as the missing vsetvli assembly instruction(vsetvli is used to set the element width, number, etc), This makes the compiler assembly output by -XX:+PrintOptoAssembly difficult to understand. And if every assembly instruction is reflected, it will be redundant and increase the maintenance work in the future. And referring to other CPUs, such as the ARM64, it is straightforward to use the instruct function name to simplify [1].
While this won't affect release build, we should fix this for debug build. We can use the -XX:+PrintOptoAssembly parameter to print the compiler assembly output by -XX:+PrintOptoAssembly and view the assembly logic in conjunction with the source code of the specific vector node.
[1]
jdk/src/hotspot/cpu/aarch64/aarch64_vector.ad
Lines 2842 to 2846 in 4460429
Testing:
qemu with UseRVV:
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/14279/head:pull/14279$ git checkout pull/14279Update a local copy of the PR:
$ git checkout pull/14279$ git pull https://git.openjdk.org/jdk.git pull/14279/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 14279View PR using the GUI difftool:
$ git pr show -t 14279Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/14279.diff
Webrev
Link to Webrev Comment