Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2022-01

Any word on this ARM / AArch64 optimisation?

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

J. Gareth Moreton

Hi everyone,

Any word on the validity of this ARM / AArch64 optimisation? It's quite good at increasing speed and shrinking code size by concatenating writes to the stack, among other things:
https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/104 - the new CPU feature flag I put in will also mean I can use it on ArmV7A to improve constant generation (for ARM, it requires at least an ARMV7A architecture, and for AArch64 it always works).

Gareth aka. Kit

This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Reply by email

Florian Klämpfl
to J. Gareth Moreton
Show quoted text 5 lines
Am 21.01.2022 um 18:23 schrieb J. Gareth Moreton via fpc-devel : Hi everyone, Any word on the validity of this ARM / AArch64 optimisation? It's quite good at increasing speed and shrinking code size by concatenating writes to the stack, among other things: https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/104 - the new CPU feature flag I put in will also mean I can use it on ArmV7A to improve constant generation (for ARM, it requires at least an ARMV7A architecture, and for AArch64 it always works).

I am currently a little bit more careful with merging as we had some subtile bugs recently and I want to wait till things settle down first.

Reply by email

J. Gareth Moreton
to Florian Klämpfl

That's fair.  We probably need to start building more tests for the test suite at some point to catch the causes of these bugs, like you hinted with some of the bugs introduced with my peephole optimizations! (Sorry about that!)

Gareth aka. Kit

Florian Klämpfl wrote 12 lines
> Am 21.01.2022 um 18:23 schrieb J. Gareth Moreton via fpc-devel : > > Hi everyone, > > Any word on the validity of this ARM / AArch64 optimisation? It's quite good at increasing speed and shrinking code size by concatenating writes to the stack, among other things: https://gitlab.com/freepascal.org/fpc/source/-/merge_requests/104 - the new CPU feature flag I put in will also mean I can use it on ArmV7A to improve constant generation (for ARM, it requires at least an ARMV7A architecture, and for AArch64 it always works). I am currently a little bit more careful with merging as we had some subtile bugs recently and I want to wait till things settle down first. _______________________________________________ fpc-devel maillist - https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus

Reply by email