3 ms·
Can you elaborate on bounds checks being optimized out? Is it only in certain situations where compiler can prove that they are completely unnecessary? Otherwis
by caconym_ 10y ago
Can you elaborate on bounds checks being optimized out? Is it only in certain situations where compiler can prove that they are completely unnecessary? Otherwise, they can't be relied on, so what's the point of having them at all?
- steveklabnik 10y agoYes, if the compiler can prove they're not needed, then it can remove the checks. But it has to prove it.