8282414: x86: Enhance the assembler to generate more compact instructions#7628
8282414: x86: Enhance the assembler to generate more compact instructions#7628merykitty wants to merge 6 commits intoopenjdk:masterfrom
Conversation
|
👋 Welcome back merykitty! A progress list of the required criteria for merging this PR into |
|
@merykitty The following label will be automatically applied to this pull request:
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. |
Webrevs
|
TobiHartmann
left a comment
There was a problem hiding this comment.
Looks reasonable to me and all tests pass. @sviswa7 could you have a look at this as well?
|
/reviewers 2 |
|
@merykitty 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 235 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. 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 (@TobiHartmann, @sviswa7) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
|
@TobiHartmann |
|
Thank you very much for the testings and reviews. |
|
@merykitty |
|
/sponsor |
|
Going to push as commit bacfaa3.
Your commit was automatically rebased without conflicts. |
|
@sviswa7 @merykitty Pushed as commit bacfaa3. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Hi, this patch enhances the x86 assembler to emit more compact code for some popular instructions.
For common arithmetic instructions against immediates, if the immediate requires more than 1 byte to encode, we can still shave off 1 byte if the register operand is rax.
For test instruction, since the operation does not write the result, we can downgrade a long to an int and an int to a byte instruction if the immediate is positive and encodable using a smaller amount of bytes.
Thank you very much.
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/7628/head:pull/7628$ git checkout pull/7628Update a local copy of the PR:
$ git checkout pull/7628$ git pull https://git.openjdk.java.net/jdk pull/7628/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 7628View PR using the GUI difftool:
$ git pr show -t 7628Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/7628.diff