The Jerusalem PostCIA misled investigators over Lee Harvey Oswald before, after Kennedy assassination, report findsDaily MaverickHATE CRIMES OP-ED: Race, class and geography shape SA’s queercide crisisInquirerWhere to get free HIV testing this DecemberColliderForget ‘Tracker,’ Josh Holloway Once Almost Starred in Taylor Sheridan’s Gritty Neo-WesternBusiness AMJapan overweegt te besparen op GCAP-gevechtsvliegtuig met Italië en het Verenigd Koninkrijk en zet daarmee toekomst van project onder drukSportstarWorld Chess Championship, Game 6 result: Gukesh suffers another setback, Sindarov leads 4-2Wirtualna PolskaMieli wozić turystów na kiełbaski. Tak ministerstwo chciało rozwiązać spór o konie z Morskiego OkaThe Hollywood ReporterPaul McGuinness, Longtime Manager for U2, Dies at 75InteriaKoszmar w afrykańskim kurorcie. Rosjanka nie zdążyła wrócić do pokojuGlobal NewsSundin backs Hiller’s use of No. 1 pick McKennaTagesschauInnenstadt von Trier: Stundenlange Gefährdungslage - Gesuchter festgenommenBBC NewsDeath of former manager Paul McGuinness at 75 an 'incalculable loss' - U2
The Daily Newsstand · Free, Always
Monday, November 30, 2026

You are reading Joho no Todai on KioskNews: newspapers from many countries on one stand, each linked to its original. What other papers report

LLVM Merges a Change to Prefer 128-Bit Auto-Vectorization on AMD Bulldozer-Family CPUs

Translate

A September 13 LLVM bug report was based on measurements from an AMD Opteron 6386SE system. On Fedora 44, the user compared Clang 22.1.8 and GCC 16.2.1 on a task that multiplied each of 100,000 floating-point values by one constant and added another.

Clang's generic x86-64 build took 26.994 microseconds of CPU time. Targeting Piledriver with -march=bdver2 brought that to 93.162 microseconds, or about 3.45 times as long.

With GCC, the generic x86-64 build took 30.125 microseconds, and the Piledriver build took 26.501 microseconds. The user said adding -mprefer-vector-width=128 brought Clang back to roughly the same performance as GCC.

Targeting a CPU can make more instructions available to the compiler. Performance then depends on which of the additional instructions are worth choosing.

Running 256-bit instructions on 128-bit execution units

According to LLVM's documentation, loop auto-vectorization combines repeated operations into instructions that process multiple data elements. The compiler estimates the cost to decide how many to group. A 128-bit vector holds four 32-bit floating-point values, while a 256-bit vector holds eight.

AMD's January 2014 Family 15h optimization guide describes a floating-point unit (FPU) with two 128-bit multiply-add units. The design shares the FPU between two integer cores in one module. AVX supports 256-bit operations, which Bulldozer-family processors handle internally as two 128-bit operations.

During review of the change, developers noted that when one thread runs a 256-bit instruction, the other thread may be unable to use the FPU.

Using fewer instructions in one thread can still reduce overall CPU efficiency if it leads to contention for shared resources. With two execution units available, there is a case for selecting 128-bit operations.

Developers also noted that 256-bit instructions can reduce the number of instructions a processor has to decode. The relationship between instruction width and execution efficiency depends on both CPU design and the workload.

Follow-up tests on Excavator and Piledriver

In October, a developer published measurements for a similar task on Excavator hardware. Clang took 36.1 microseconds when optimized for Excavator and 34.8 microseconds when also instructed to prefer 128-bit vectors, a reduction of about 3.6%.

In the same test, GCC took 34.8 microseconds when array prefetching inside the loop was disabled and 33.0 microseconds with its default settings. The developer attributed GCC's faster default result to prefetch instructions. How the data reaches the execution units matters alongside how those units are used.

In November, a developer reported a difference between 256-bit and 128-bit settings on Piledriver hardware as well. The table lists 89.5 microseconds with Clang's -march=bdver2 and 25.8 microseconds with -march=bdver4 and -mprefer-vector-width=128.

The table also specifies different CPU targets, so factors other than vector width could explain part of the gap. The Excavator test and the workaround on the original Opteron show why it can help to change vector width while keeping the CPU target fixed.

LLVM changes the default

On November 30, 2026, LLVM merged the change into its main branch, preferring 128-bit vector width across four generations: Bulldozer (bdver1), Piledriver (bdver2), Steamroller (bdver3), and Excavator (bdver4).

LLVM's CPU definitions add TuningPrefer128Bit to the original Bulldozer tuning settings. The next three generations inherit that setting. The release notes cite improved multithreaded performance as the goal.

The change includes a regression test. For a multiply-and-add loop targeting Piledriver, the default generates intermediate code that processes four elements at a time. Explicitly overriding the 128-bit preference generates code that processes eight.

Existing binaries need to be rebuilt with a compiler that supports the change. With Clang 22.1.8, the version used in the original measurements, users can set the target CPU and add -mprefer-vector-width=128 to try the same approach.

When the change reaches ordinary users will depend on compiler release schedules and adoption by Linux distributions and others.

AMD's January 2014 guide already described the 128-bit execution units. What LLVM changed in 2026 was how it uses them. Compiler improvements can still recover performance for people running older CPUs.

View the original on Joho no Todai →

KioskNews shows a cleaned-up reading view extracted from the publisher’s page — the original always lives on their site, not ours.