[fpc-devel] Debugging Loop Unroll Optimization

Thorsten Engler thorsten.engler at gmx.net
Fri May 18 18:54:50 CEST 2018


> -----Original Message-----
> From: fpc-devel <fpc-devel-bounces at lists.freepascal.org> On Behalf
> Of Mattias Gaertner
>
> You forgot the case where the loop was not entered:
> 
> for i:=2 to 1 do ;
> 
> i is now undefined.
> 
> Same for
> 
> for i in emptyset do ;

Both are cases of "the loop run to completion". Just because "completion" resulted in zero executions of the loop contents doesn't change that.




More information about the fpc-devel mailing list