Get the latest tech news

LLVM Clang 21 Compiler Helping Squeeze More Performance On 5th Gen AMD EPYC "Turin"


With LLVM 21.1 having been released last week as the newest half-year feature update to this open-source compiler stack, I have begun benchmarking Clang 21 on a variety of systems for getting a feel for the performance over Clang 20.

Clang 21 brings new optimizations such as for optimizing pointer arithmetic on null pointers more aggressively, fixing x86_64 psABI handling to return CXX records in memory rather than AVX registers, various new C++2c language features, a number of new C2y language features, and a variety of new compiler flags / warnings and other changes. The official Debian/Ubuntu LLVM APT archive packages were used for obtaining both compilers in an easily repeatable manner. For this initial testing an AMD EPYC 9965 2P "Zen 5" Turin server was used for benchmarking while running Debian 13 with the Linux 6.16 upstream kernel.

Get the Android app

Or read this on Phoronix

Read more on:

Photo of AMD

AMD

Photo of Performance

Performance

Photo of epyc

epyc

Related news:

News photo

AMD Begins Queuing Graphics Driver Changes For Linux 6.18

News photo

Adaptive LLM routing under budget constraints

News photo

AMD Linux Testing Captured All Top 10 Spots For Our Most-Viewed Articles In August