RFR: 8282414: x86: Enhance the assembler to generate more compact instructions [v3]
Quan Anh Mai
duke at openjdk.java.net
Sat Feb 26 07:13:32 UTC 2022
> 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.
Quan Anh Mai has updated the pull request incrementally with one additional commit since the last revision:
fix build
-------------
Changes:
- all: https://git.openjdk.java.net/jdk/pull/7628/files
- new: https://git.openjdk.java.net/jdk/pull/7628/files/2c6dc08e..d9db9b8f
Webrevs:
- full: https://webrevs.openjdk.java.net/?repo=jdk&pr=7628&range=02
- incr: https://webrevs.openjdk.java.net/?repo=jdk&pr=7628&range=01-02
Stats: 3 lines in 1 file changed: 0 ins; 0 del; 3 mod
Patch: https://git.openjdk.java.net/jdk/pull/7628.diff
Fetch: git fetch https://git.openjdk.java.net/jdk pull/7628/head:pull/7628
PR: https://git.openjdk.java.net/jdk/pull/7628
More information about the hotspot-compiler-dev
mailing list