Newsletter IconFacebook IconX IconThreads IconInstagram IconYouTube IconPinterest Icon
Giveaway: 12 Winners Will Score MONTECH NX400 and NX600 CPU Coolers

Zen 4 and 5 receive up to 12% performance boost thanks to new GCC compiler patch

AMD published a new patch for GCC that improves branch prediction efficiency and boosts Zen 4 CPU performance by up to 12% and Zen 5 CPUs by up to 9%.

Zen 4 and 5 receive up to 12% performance boost thanks to new GCC compiler patch
Comments
Tech Reporter
Published
1-minute read time
TL;DR: AMD released a small GCC patch adjusting branch misprediction costs for Zen 4 and Zen 5, which Phoronix's SPEC benchmarks show can raise Zen 5 performance by up to 12% and Zen 4 by up to 9%; the change may appear in GCC 17 or be back-ported to GCC 16.3 and mirrors prior branch predictor gains.
Voice: Default
0:00 / 2:04
Use left and right arrow keys to seek audio.

AMD has published a new patch for the GNU Compiler Collection (GCC) surrounding Zen 5 and Zen 4 CPUs' branch predictors, helping boost the performance of Zen 5 CPUs by 12% and 9% for Zen 4. Reported by Phoronix, the new patch features just two lines, bumping the branch misprediction scale by three in the cost tables for both architectures.

The aforementioned performance results were taken from benchmarks using SPEC, or Standard Performance Evaluation Corporation's CPU benchmark. Not every app will gain an exact 9% or 12% performance improvement, but the SPEC benchmark shows what the average performance uplift could be on average across a variety of workloads.

Zen 4 and 5 receive up to 12% performance boost thanks to new GCC compiler patch 2

The GNU Compiler Collection (GCC) is a collection of compilers that support various programming languages, hardware, and operating systems. In the case of CPUs, AMD uses GCC to program its CPUs on how they should run instructions on the chip, including the way the chip operates its branch predictor.

Phoronix reports that the new patch is expected to debut next year as part of GCC 17, however, the outlet also suggested the patch could be "back-ported" to the GCC 16.3 release. If true, we could see the patch drop this year rather than next year.

Frequently Asked Questions

Open a question for an answer from TweakTown's coverage of this news, or ask your own below.

Question #1

How were the 12% (Zen 5) and 9% (Zen 4) performance numbers measured and which benchmark was used?

Phoronix reported the performance gains after testing with the SPEC benchmark, the Standard Performance Evaluation Corporation CPU benchmark. The 12% uplift for Zen 5 and 9% for Zen 4 come from those SPEC results and represent an average performance uplift across a variety of workloads.
Question #2

Will the GCC patch be included in GCC 17 or is it likely to be back-ported to GCC 16.3 this year?

Question #3

Which types of workloads are most likely to benefit from the branch predictor improvements reported in the article?

The article says the reported gains come from SPEC CPU benchmarks, so workloads represented in the SPEC suite are most likely to see the improvement. It also notes a similar 2024 branch prediction update produced roughly a 10% performance improvement for gaming and productivity workloads, indicating those types may particularly benefit.
Question #4

Can end users expect the same percentage gains in real-world applications and games as shown by the SPEC benchmark?

Have a question about this content not listed here? Ask below and TweakBot will answer it.

The results of this patch mimic similar behavior that we saw back in 2024, when AMD published branch prediction improvements for Zen 3, Zen 4, and Zen 5 for Windows 11 23H2. The improvements in that update provided roughly a 10% performance improvement for gaming and productivity workloads.

Photo of the AMD Ryzen 9 9950X3D Processor

Best Deals: AMD Ryzen 9 9950X3D Processor

Prices last scanned 1 hour and 32 minutes ago

* Prices may be inaccurate. As an Amazon Associate, we earn from qualifying purchases. We earn affiliate commission from any Newegg or PCCG sales.

News Source:phoronix.com

Comments

About the author

Tech Reporter

Aaron is a tech journalist and computer enthusiast with over five years of experience writing computer hardware news. His passion for hardware began at an early age, building computers and later helping people on computer forums. He specializes in CPUs, GPUs, and gaming, enlightening readers on the latest tech and gaming news geared towards the enthusiast community. In his off time, you can find him reading up on the latest overclocking methods for new CPUs or playing video games.

Stay Updated

Follow TweakTown for breaking tech news, reviews, and daily updates.

Add TweakTown as a preferred source on GoogleFind TweakTown on Apple News
Newsletter Subscription