Re: [fpc-devel] An interesting thought... AI

2022-11-11 Thread J. Gareth Moreton via fpc-devel
I'm liking these discussions! I have done some refactoring, such as attempting to 'factor out' common conditions (sometimes a matching instruction, but also commonly the operand types).  Sometimes I choose not to factor - for example, sometimes I try to compute relatively cheap conditions firs

Re: [fpc-devel] An interesting thought... AI

2022-11-11 Thread Marco van de Voort via fpc-devel
On 11-11-2022 09:57, Jonas Maebe via fpc-devel wrote: On 11/11/2022 00:44, J. Gareth Moreton via fpc-devel wrote: My slight concern is that the x86 peephole optimizer is becoming pretty bloated now An alternative could be to specify the peephole optimizations in a pattern matching format, an

Re: [fpc-devel] An interesting thought... AI

2022-11-11 Thread Jonas Maebe via fpc-devel
On 11/11/2022 00:44, J. Gareth Moreton via fpc-devel wrote: My slight concern is that the x86 peephole optimizer is becoming pretty bloated now An alternative could be to specify the peephole optimizations in a pattern matching format, and then either write a tool that converts them to a bunc

Re: [fpc-devel] An interesting thought... AI

2022-11-11 Thread Christo Crause via fpc-devel
On Thu, Nov 10, 2022 at 8:10 PM J. Gareth Moreton via fpc-devel < fpc-devel@lists.freepascal.org> wrote: > Hi everyone, > > This has been something that has been on my mind for a while now, but > with my increasingly more complex optimisations being developed for the > Free Pascal Compiler and the