ldc doesn't elide bounds check

Kagamin spam at here.lot
Mon Mar 25 08:45:44 UTC 2019


It's probably related to wrapping. If you iterate with step n and 
limit m and m is big enough, at some point i+n>m.max and will 
wrap, and the cycle will continue. The optimizer might check that 
it can't happen, but apparently doesn't.


More information about the digitalmars-d-ldc mailing list