https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 94899, which changed state.
Bug 94899 Summary: Failure to optimize out add before compare with INT_MIN https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94899 What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED