https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94589
Jonathan Wakely <redi at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://gcc.gnu.org/bugzill | |a/show_bug.cgi?id=94006 --- Comment #4 from Jonathan Wakely <redi at gcc dot gnu.org> --- PR 100322 shows that this missed-optimization causes a regression for code using std::chrono::duration types. Since C++20 their comparisons use operator<=> and so produce much worse code than the same source compiled as C++17.