Landing: 307bef6931b7

Project / Subsystem

gcc / genemit

Date

2026-08-07

Author

Kyrylo Tkachov

Commit

307bef6931b7e14e194871545fe69c73d832db83

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
genemit
patch_id
—
commit_hash
307bef6931b7e14e194871545fe69c73d832db83
source_type
github
headline
genemit: Distribute overloaded-name definitions across output files
tldr
Balances generated code size across files to improve parallel compilation times.
author
Kyrylo Tkachov
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • genemit
  • • build system
  • • performance
  • • AArch64
discussion_id_link
—
bugzilla_pr
—
date
2026-08-07T00:00:00.000Z

This commit refactors genemit to distribute the definitions of overloaded names more evenly across output files. Previously, a single file received all definitions for add_clobbers, added_clobbers_hard_reg_p, and code_for_/gen_ pairs. This led to a significant size imbalance, with one file being 70% larger than others, slowing down parallel compilation. By assigning an output file per overloaded name, the file sizes are now balanced within a 3% spread, improving overall build times.