https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106617
--- Comment #3 from Sergei Trofimovich <slyfox at gcc dot gnu.org> --- (In reply to Sergei Trofimovich from comment #2) > (In reply to Andrew Pinski from comment #1) > > I doubt this is a regression. I suspect if you compile the trunk with > > --enable-checking=release you would see the same compile time as 12. > > I think both my gcc-12.1.0 and gcc-13.0.0 are compiled with the same options > (both are without --enable-checking= option). My unsubstantiated guess would > be on recently added rules to fold & (or similar) which does not scale too > well on long strings of ternary operators. Oh, only now I realized snapshots have a different default compared to releases proper. I'll add --enable-checking=release and re-test.