[aarch64-port-dev ] [RFC] ldp/stp peephole optimizations

Zhongwei Yao zhongwei.yao at linaro.org
Tue Jan 30 04:17:51 UTC 2018

Hi, all,

The patch try doing it in MacroAssembler is here:

On 27 December 2017 at 12:05, Zhongwei Yao <zhongwei.yao at linaro.org> wrote:
> OK, I'll give a try doing it in MacroAssembler.
> On 26 December 2017 at 18:13, Andrew Haley <aph at redhat.com> wrote:
>> On 26/12/17 04:24, Zhongwei Yao wrote:
>>> I was also thinking about merging it in assembler. My concern was that
>>> assembler usually does not do optimisation.
>>> However, I've taken a quick check and I think it should be doable in
>>> assembler. For example, we can merge ldr in assembler's ldr instruct
>>> definition by checking if the previous instruct meets the constraints.
>>> For the previous instruction, we can record it in Instruction_aarch64
>>> class's destructor (if it is ld/st instruction, record it. if not,
>>> clear it.).
>>> What do you think? If it is OK, I'll work out a prototype for merging
>>> ldr in assembler.
>> Try doing it in MacroAssembler.  MacroAssembler::membar is an example of
>> where we already merge instructions.
>> --
>> Andrew Haley
>> Java Platform Lead Engineer
>> Red Hat UK Ltd. <https://www.redhat.com>
>> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671
> --
> Best regards,
> Zhongwei

Best regards,

More information about the hotspot-compiler-dev mailing list