Thanks. I'll have a study of this and potentially move my initial deep optimisation component to this stage.
I've made some more peephole optimisations in the meantime, but I'm going to hold off on posting them because they're starting to conflict with my other submissions. Besides, I've given you far too many patches already! Gareth On Thu 14/06/18 21:58 , Florian Klämpfl flor...@freepascal.org sent: Am 13.06.2018 um 20:50 schrieb J. Gareth Moreton: > I haven't fully uncovered the secrets of > the compiler yet, but I did notice "pre- > peephole pass" under x86, but I think the > only functions it touched was one of the > bit shifts. Does this occur before > register allocation or was it just > something that had to be done before Pass > 1? It is only before pass 1. I attached a patch I once started which shows the idea. _______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org [1] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel [2]">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel Links: ------ [1] mailto:fpc-devel@lists.freepascal.org [2] http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel