https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93744
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Jakub Jelinek from comment #1) > Started with r8-2090-g2071f8f980cc0de02af3d7d7de201f4f189058ff I was thinking it was that and I was looking for that part in match.pd earlier. There are two ways of fixing this I can see; checking for side effects or just having this pattern only for GIMPLE.