bounds checking and optimization

Elronnd elronnd at elronnd.net
Thu Jul 1 00:02:48 UTC 2021


On Wednesday, 30 June 2021 at 15:51:58 UTC, Bruce Carneal wrote:
> So a compiler that could pull bounds checking out of a loop 
> would need to generate code that would run a potentially 
> shortened loop and then throw if OOB.

This is effectively how loop unrolling works in hotspot.


More information about the digitalmars-d-ldc mailing list