[fpc-devel] Debugging Loop Unroll Optimization

Martok listbox at martoks-place.de
Tue May 22 01:34:16 CEST 2018

Am 21.05.2018 um 19:27 schrieb Ondrej Pokorny:
> Well there is still something left:
You are right, variables don't correctly get captured (or rather, don't get
captured at all). This is not good.
Dirty fix: only unroll loops over local variables when there are no nested
procs. But that probably prohibits most useful cases as well...

I'd say that closures + AST-level inlining + some dead store eliminations would
fix a lot of issues that currently have special case handling.


More information about the fpc-devel mailing list