https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 95729, which changed state.
Bug 95729 Summary: Failure to optimize away certain returns when the condition to reach them is a calculation that already results in that value https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95729 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |DUPLICATE