https://gcc.gnu.org/bugzilla/show_bug.cgi?id=19987 Bug 19987 depends on bug 95923, which changed state.
Bug 95923 Summary: Failure to optimize bool checks into and https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95923 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED