News for hackers. Stuff that matters.
Re:Compiler Explorer by saagarjha on Thursday August 06, 2020 @04:41AM (#24069173)
In the absence of PGO data, some compilers nonetheless will speculate the target of a virtual function call and optimize as such.
Re:Compiler Explorer by silon42 on Thursday August 06, 2020 @04:49AM (#24069213)
It could be a link time optimization to check if a single implementation is used and then de-virtualize the calls.
Re:Compiler Explorer by pjmlp on Thursday August 06, 2020 @04:56AM (#24069246)
True, I imagine that clang with ThinLTO might do it.