2 ms·
The parent of my original comment gave it as an example of undefined behavior improving performance. I don't know enough to say whether that's true or not but w
by nickpsecurity 10y ago
The parent of my original comment gave it as an example of undefined behavior improving performance. I don't know enough to say whether that's true or not but was responding to correctness issues in that. So, now you're saying that the floating point optimizations sacrificing accuracy don't use any undefined behavior? That the parent just gave a bad example?
- ori_b 10y agoI'm saying that it violates the spec if you enable it. It's not undefined behavior in the spec. If you want a good example of undefined behavior enabling optimizations, you can eliminate loop bounds checks by assuming that integers will never overflow.
- nickpsecurity 10y agoGotcha. Thanks.