Re:OpenMandriva, the first Clang-built Linux distribution
by BurningCycles on Monday June 17, 2019 @04:41AM
(#20201023)
I have to disagree, -flto=thin is faster in compile time, but in performance I get better results with -flto=n in GCC.
Also with FDO I get better results with GCC over Clang/LLVM, my main test subjects are rendering (Blender), archivers, encoders and emulation.
However with straight up -O2/-O3 I very often get better performance with Clang/LLVM. I haven't benchmarked on ARM though, my results may be very different there.
e.g. the clang memcpy can be 100x faster than the gcc memcpy, when the size and alignment is known.
And gcc-9 added serious regressions on some platforms, that you need to blacklist it. gcc-10 probably not being better.