News for hackers. Stuff that matters.
Re:So you think you know C? (2016) by userbinator on Saturday July 06, 2019 @02:24PM (#20371024)
It's easy to see why compiler developers added these optimizations: someone filed a bug saying "hey, why is my loop full of movsx", and the developers fixed the problem.

"fixed" by breaking other expectations. Regardless of what the spec says, that's still a stupid way to do things. There's a child comment below which examines this case in detail; and the real solution is to make the analysis better, not use UB as a catch-all excuse.

There are no comments on this comment yet.