RFR: AARCH64: 8138575: Improve generated code for profile counters

Andrew Dinn adinn at redhat.com
Mon Oct 5 09:34:18 UTC 2015


On 29/09/15 18:17, Andrew Haley wrote:
> 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/

Looks good to me too.


regards,


Andrew Dinn
-----------
Senior Principal Software Engineer
Red Hat UK Ltd
Registered in UK and Wales under Company Registration No. 3798903
Directors: Michael Cunningham (USA), Matt Parson (USA), Charlie Peters
(USA), Michael O'Neill (Ireland)


More information about the hotspot-dev mailing list