[fpc-devel] Recent changes to x86-64 peephole optimisation

2020-03-08 Thread J. Gareth Moreton
Hi everyone, I've been away for a few days so I haven't been paying too much attention to the trunk, but I've noticed some new changes to the x86- 64 peephole optimized that look interesting. Can someone fill me in on what they're meant to do and the motivation behind the additions? This is

[fpc-devel] AS-IS for enums

2020-03-08 Thread Ondrej Pokorny
Hello Florian, as we spoke I checked the patch for IS operators for enumerations. I also added int64/dword value compatibility that was missing in the last patches. There is still some bug/issue left. The objfpc mode shows warnings like this: test_as_is_1.lpr(51,8) Warning: Expectloc is