https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96923 Bug 96923 depends on bug 100864, which changed state.
Bug 100864 Summary: (a&!b) | b is not opimized to a | b for comparisons https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100864 What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution|--- |FIXED