https://gcc.gnu.org/bugzilla/show_bug.cgi?id=101179
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|normal |enhancement Last reconfirmed| |2021-06-23 Status|UNCONFIRMED |NEW Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (x ? 16 : 4) to: (4 << (x * 2)) Should be easy to add to match.pd's /* A few simplifications of "a ? CST1 : CST2". */ And PHI-OPT will use it without you doing anything extra.