Landing: 8d7dc3ed288b

Project / Subsystem

gcc / ipa-cp

Date

2026-07-09

Author

Martin Jambor

Commit

8d7dc3ed288b9fec82721b432d5b683ffade0b1b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
ipa-cp
patch_id
commit_hash
8d7dc3ed288b9fec82721b432d5b683ffade0b1b
source_type
github
headline
ipa-cp: Restrict all-context nodes to local cgraph nodes
tldr
IPA pass refined to only create all-context nodes for local cgraph nodes, preventing miscompilations.
author
Martin Jambor
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • ipa
discussion_id_link
bugzilla_pr
date
2026-07-09T00:00:00.000Z

The IPA-CP pass in GCC has been updated to only create all-context nodes for local call graph nodes. Previously, it created these nodes for all incoming edges, which could lead to miscompilations when indirect or unknown calls altered argument values. This change incorporates a fix for PR125207 by restricting all-context node creation to cases where it’s strictly necessary for recursive refinement, simplifying the decision-making process and improving correctness.