News for hackers. Stuff that matters.
Re:How undefined signed overflow enables optimizations in GCC by mikeash on Sunday February 21, 2016 @04:47PM (#11146740)
I don't think so. Most of those optimizations come from the "no overflow" part, not the "signed" part. If unsigned overflow were also undefined then these optimizations would work there as well. Since unsigned overflow is defined (all operations are modulo 2^bitsize), stuff like transforming `x + c > x` to `true` is not valid, since it can legally be false.

There are no comments on this comment yet.