https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96702
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2021-08-17 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. The problem is c is used twice. we handle both optimizations just fine alone, just not when together. There might be either a :s that maybe should not be there in match.pd or an explict check for used more than once.