Hacker News new | ask | show | jobs
by CJefferson 2987 days ago
No, not in this case. The original function is well defined and has no undefined behaviour (in the case I describe) as it would return before it reached "bad memory". The optimised version is what reaches further through memory (while vectorising).
1 comments

Oh, good point, I didn't read what you wrote carefully enough.