RFR: AARCH64: 8138575: Improve generated code for profile counters (original) (raw)
Andrew Haley aph at redhat.com
Tue Sep 29 17:17:10 UTC 2015
- Previous message: New assert(), guarantee(), fatal() and vm_exit_out_of_memory() macros.
- Next message: RFR (XS) 8078295 - hotspot test_env.sh can set VM_CPU incorrectly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
AArch64 generates suboptimal code for profile counters.
This
add xscratch2, x0, #0x218
ldr xscratch1, [xscratch2]
add xscratch1, xscratch1, #0x1
str xscratch1, [xscratch2]
can be this:
ldr xscratch1, [x0, #0x218]
add xscratch1, xscratch1, #0x1
str xscratch1, [x0, #0x218]
Although this looks like a very minor improvement, the same pattern is repeated many times in C1-generated code.
http://cr.openjdk.java.net/~aph/8138575/
Thanks, Andrew.
- Previous message: New assert(), guarantee(), fatal() and vm_exit_out_of_memory() macros.
- Next message: RFR (XS) 8078295 - hotspot test_env.sh can set VM_CPU incorrectly
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]