Landing: faafcc163b26
Project / Subsystem
gcc / phiopt
Date
2026-06-30
Author
Andrew Pinski
Commit
faafcc163b261d640aad43dacc645fbc43db757c
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- phiopt
- patch_id
- —
- commit_hash
- faafcc163b261d640aad43dacc645fbc43db757c
- source_type
- github
- headline
- phiopt: Use remove_phi_node for efficiency
- tldr
- Replaces `gsi_remove` with `remove_phi_node` in the phiopt pass for better memory management of PHI nodes.
- author
- Andrew Pinski
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • compiler
- • memory management
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-30T00:00:00.000Z
The phiopt optimization pass in GCC has been refactored to use remove_phi_node instead of gsi_remove when processing PHI nodes. This change ensures that PHI nodes are immediately freed or made available for reuse, rather than remaining in memory until the next garbage collection cycle. This improves the efficiency of the phiopt pass.