Eliding of slice range checking

Per Nordlöw per.nordlow at gmail.com
Wed Oct 23 13:08:34 UTC 2019


On Wednesday, 23 October 2019 at 11:33:56 UTC, kinke wrote:
> Simply check the IR or asm, e.g., on run.dlang.io. If there's a 
> call to `_d_arraybounds` in the function of interest, bounds 
> checks are enabled.

The ASM- and IR-output from the following code is pretty messy for

    ldc with flags `-release -O`

Is it possible to remove cluttering?

https://run.dlang.io/is/mAXOm6


More information about the Digitalmars-d-learn mailing list