AMD Zen 2 Performance Looking Even Better With GCC 10
While this year's GCC 9 compiler release brought initial support for AMD Zen 2 processors with the Znver2 target, the support was sadly incomplete. While the GCC 9 support added some of the new instructions, it wasn't complete (such as RDPRU support remains missing) and the cost tables and scheduler model were not updated from Znver1 to account for the microarchitectural changes. Thankfully, SUSE's compiler experts recently fixed up this support for the GCC 10 compiler and more recently were able to get it back-ported for the upcoming GCC 9.2 for the Linux distributions that will upgrade to that point release. Here are some benchmarks looking at the performance impact of that updated AMD Zen 2 compiler code.