https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120221
--- Comment #8 from Richard Biener <rguenth at gcc dot gnu.org> --- (In reply to Filip Kastl from comment #7) > So this isn't specific for switches. Rather, this is some kind of forward > propagation of a shift that we don't currently do, right? Yes, it's basically an expression simplification that to be profitable has to apply to all uses.