https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108803
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- I take back the "I wonder why we haven't optimized it earlier", the reason is -Og, we do optimize that in evrp/vrp*, but those aren't done with -Og.