linux · Phoronix Artykuł

LLVM/Clang Lands Missed Optimization For Old AMD Bulldozer CPUs

LLVM/Clang Lands Missed Optimization For Old AMD Bulldozer CPUs

Written by Michael Larabel in LLVM on 30 November 2026 at 05:54 AM EST. Add A Comment LLVM It's taken until now to uncover and fix a missed optimization within the LLVM/Clang compiler codebase for targeting the AMD Bulldozer processors that go back 15 years. With the latest Clang code will be improved multi-threaded performance on AMD Bulldozer systems.

Back in September a bug report was raised that LLVM Clang was generating around three times slower code with -march=bdver2 (Piledriver) tuning than using generic x86_64 code. And much slower -march=bdver2 code than when using the option with the GCC compiler.

Bulldozer regression demo benchmark


The issue was tracked down and fixed in today's LLVM Git code for AMD Bulldozer CPUs. Bulldozer 1 through Bulldozer version 4 processors will now only vectorize to 128-bit vector widths by default. That preference of preferring 128-bit vectors in turn improves the multi-threaded performance on these processors.

AMD FX Bulldozer CPU


A small fix leading to significant performance benefits for those still using AMD Bulldozer era processors and compiling tuned code with the LLVM/Clang compiler. Add A Comment