RFR(M): 8170991: PPC64: Bad code for initialization of short arrays
martin.doerr at sap.com
Fri Dec 9 17:01:23 UTC 2016
the new flag "InitArrayShortSize" was set to 8 on PPC64. However, this leads to bad code. PPC64's C2 compiler currently does not have dedicated match rules to store 0.
Unfortunately, loading of the constant 0 got rematerialized many times in some cases consuming more registers and code space than needed.
An attempt to improve initialization was
8170094: PPC64: Keep immediate value 0 cached into a register to improve performance
but this approach has disadvantages and we had decided against it.
It is possibly to implement special ClearArray nodes to improve the initialization of arrays only:
@Gustavo: Maybe this improves your test cases, too?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev