Landing: f9b60a8bd756

Project / Subsystem

gcc / ipa-cp

Date

2026-10-05

Author

Martin Jambor

Commit

f9b60a8bd7569f59534a42d1383c1f66a37542cf

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
ipa-cp
patch_id
—
commit_hash
f9b60a8bd7569f59534a42d1383c1f66a37542cf
source_type
github
headline
ipa-cp: Adjust PGO IPA-CP cloning heuristics
tldr
Refines GCC's PGO-based IPA-CP cloning heuristics by scaling run-time metrics.
author
Martin Jambor
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • ipa
  • • pgo
discussion_id_link
—
bugzilla_pr
—
date
2026-10-05T00:00:00.000Z

GCC’s inter-procedural analysis (IPA) cloning pass, when used with Profile-Guided Optimization (PGO), now correctly scales the run-time metrics used for evaluating cloning opportunities. This adjustment ensures that these metrics are relative to the total program run time, aligning PGO-driven scores more closely with those derived from guessed profiles.