GCC 8.0 vs. LLVM Clang 6.0 On AMD EPYC
Over the years, the LLVM Clang C/C++ compiler performance has been optimized so it's to the point of competing neck-and-neck with GCC in some workloads. With PolyBench-C, GCC 8.0 maintains a slight lead when it comes to generic x86-64 generated binaries but actually regresses with the znver1 targeting while Clang performed about the same.
With the FFTW benchmark, znver1 targeting benefits both compiler stacks but GCC 8.0 is faster and also improves more compared to generic x86-64.
The HMMer molecular biology test also was made faster by znver1 optimizations and finishes with Clang slightly ahead of GCC.
The SciMark2 composite score with default x86-64 binaries sided with GCC 8.0 but with znver1, Clang 6.0 jumps ahead to beating out the znver1-optimized GCC 8 binaries.
Znver1 targeting really helps out with SciMark2.