Landing: 2508fac25d27

Project / Subsystem

gcc / ipa-cp

Date

2026-05-21

Author

Martin Jambor

Commit

2508fac25d2722bf779c1e3e407a264c0a00312d

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ipa-cp
patch_id
commit_hash
2508fac25d2722bf779c1e3e407a264c0a00312d
source_type
github
headline
Adjusts IPA-CP cloning heuristics to reduce code size.
tldr
Adjusts interprocedural constant propagation (IPA-CP) cloning heuristics to reduce excessive code growth by increasing the cost/benefit threshold.
author
Martin Jambor
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • ipa
  • constant propagation
  • code size
discussion_id_link
bugzilla_pr
date
2026-05-21T00:00:00.000Z

Interprocedural constant propagation (IPA-CP) was cloning too aggressively, leading to excessive code growth. This commit adjusts the cloning heuristics by raising the cost/benefit threshold (param_ipa_cp_eval_threshold) from 500 to 1100. It also reverts a change to get_max_overall_size that caused the size limit to depend on the current call-graph sweep, as this was counteracting the intended gradual reduction of the threshold.