Landing: 210b4eca880c
Project / Subsystem
gcc / gcc/tree-optimization
Date
2026-07-08
Author
Richard Biener
Commit
210b4eca880c88e7f7ec970b68a93a2a28bad1be
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/tree-optimization
- patch_id
- —
- commit_hash
- 210b4eca880c88e7f7ec970b68a93a2a28bad1be
- source_type
- github
- headline
- tree-optimization/126150 - Fix ICE with replace_uses_by by deferring EH edge purging
- tldr
- Fixes a compiler internal error occurring during use replacement by deferring EH edge purging.
- author
- Richard Biener
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • bugfix
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-08T00:00:00.000Z
This commit resolves an internal compiler error (ICE) in the replace_uses_by function that occurred when removing basic blocks. The issue stemmed from attempting to purge EH (Exception Handling) edges while iterating over the statements that defined the uses. The fix defers the purging of EH edges until after the iteration is complete, preventing the invalidation of data structures during processing.