Array bound checks removal increasing importance

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Sat May 31 16:30:42 PDT 2014


On 5/31/2014 4:06 PM, "Nordlöw" wrote:
> I've looked around in DMD for a suitable place to add checks for this but
> haven't found the spot where range-check is injected. Help anyone?

There isn't a suitable place. To make it work, data flow analysis would have to 
be added to the front end. While doable, this is not a simple addition. 
Eventually, we'll have to do it as a lot of things become possible & better with 
data flow analysis, not just bounds check elimination.


More information about the Digitalmars-d mailing list