https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88775
Jakub Jelinek <jakub at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org --- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Created attachment 45394 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=45394&action=edit gcc9-pr88775.patch Just as a first step, with this patch I get much better generated code at -O2, 139 bytes for _Z1fB5cxx11v instead of 259. It helps to have much shorter code already before inlining and that jump threading etc. don't try to deal with that. Jon, any value in having the __x < __y etc. for C++11 and C++98 when the methods aren't marked constexpr?