<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/one-line-x86-change-to-gcc-compiler-nets-12-benchmark-win-for-modern-intel-amd-cpus-hm9xklk3r" -->

---
title: One Line x86 Change To GCC Compiler Nets +12% Benchmark...
description: Intel software engineer Lili Cui contributed a one-line change to GCC that increases the branch misprediction cost in the generic x86 tuning table. The...
canonical: https://daily.dev/posts/one-line-x86-change-to-gcc-compiler-nets-12-benchmark-win-for-modern-intel-amd-cpus-hm9xklk3r
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: One Line x86 Change To GCC Compiler Nets +12% Benchmark Win For Modern Intel/AMD CPUs | daily.dev
og:description: Intel software engineer Lili Cui contributed a one-line change to GCC that increases the branch misprediction cost in the generic x86 tuning table. The...
og:url: https://daily.dev/posts/one-line-x86-change-to-gcc-compiler-nets-12-benchmark-win-for-modern-intel-amd-cpus-hm9xklk3r
og:image: https://api.daily.dev/og/posts/hM9XklK3R.png
og:image:alt: One Line x86 Change To GCC Compiler Nets +12% Benchmark Win For Modern Intel/AMD CPUs
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# One Line x86 Change To GCC Compiler Nets +12% Benchmark Win For Modern Intel/AMD CPUs

**[Phoronix](https://daily.dev/sources/phoronix)** · 1 min read · 1 upvotes · 0 comments

## Summary

Intel software engineer Lili Cui contributed a one-line change to GCC that increases the branch misprediction cost in the generic x86 tuning table. The rationale is that modern CPUs have deeper pipelines, making branch mispredictions more costly, so raising the mispredict scale factor by three helps the compiler avoid pipeline stalls. Benchmarks show a 12.7% gain on Intel Granite Rapids and 12.1% on AMD Zen 5 for the SPEC CPU 2017 544.nab_r NAB test. The change applies to generic x86/x86_64 builds (not -march=native) and has been merged into GCC Git, targeting the GCC 17 stable release.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.phoronix.com/news/GCC-x86-Generic-Mispredict>

## Similar posts on daily.dev

- [Someone changed one line in the GCC compiler and scored a 12% improvement on modern Intel and AMD chips](https://daily.dev/posts/someone-changed-one-line-in-the-gcc-compiler-and-scored-a-12-improvement-on-modern-intel-and-amd-ch-d1otkz2tx) · XDA Developers · 0 upvotes · 0 comments
- [GCC Patch Adjusting AMD Zen 5 Misprediction Cost Nets 12% Win In Benchmark](https://daily.dev/posts/gcc-patch-adjusting-amd-zen-5-misprediction-cost-nets-12-win-in-benchmark-stj75p8ym) · Phoronix · 0 upvotes · 0 comments
- [GCC Git Enables Additional Tuning For AMD Zen 6](https://daily.dev/posts/gcc-git-enables-additional-tuning-for-amd-zen-6-vkxzcsqmn) · Phoronix · 0 upvotes · 0 comments

---

Tags: [#compiler-optimization](https://daily.dev/tags/compiler-optimization)

[View this post on daily.dev](https://daily.dev/posts/one-line-x86-change-to-gcc-compiler-nets-12-benchmark-win-for-modern-intel-amd-cpus-hm9xklk3r)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"One Line x86 Change To GCC Compiler Nets +12% Benchmark Win For Modern Intel/AMD CPUs","url":"https://daily.dev/posts/one-line-x86-change-to-gcc-compiler-nets-12-benchmark-win-for-modern-intel-amd-cpus-hm9xklk3r","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/one-line-x86-change-to-gcc-compiler-nets-12-benchmark-win-for-modern-intel-amd-cpus-hm9xklk3r"},"datePublished":"2026-06-24T10:49:32.108Z","dateModified":"2026-06-24T10:50:00.323Z","description":"Intel software engineer Lili Cui contributed a one-line change to GCC that increases the branch misprediction cost in the generic x86 tuning table. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8e529e60c18be6c8cedf61bed69d6761?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/8e529e60c18be6c8cedf61bed69d6761?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Phoronix","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Phoronix","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/6a26ba379dd64932830aa0c9803dd7ee","url":"https://daily.dev/sources/phoronix"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/one-line-x86-change-to-gcc-compiler-nets-12-benchmark-win-for-modern-intel-amd-cpus-hm9xklk3r","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"compiler-optimization","timeRequired":"PT1M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Phoronix","item":"https://daily.dev/sources/phoronix"},{"@type":"ListItem","position":3,"name":"One Line x86 Change To GCC Compiler Nets +12% Benchmark Win For Modern Intel/AMD CPUs"}]}
```

