LLVM/Clang Lands Missed Optimization For Old AMD Bulldozer CPUs

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. 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. 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.

Original Source

Read the full article at Phoronix →

KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.