Landing: 8dcf4a63cf3f

Project / Subsystem

gcc / gcc

Date

2026-08-24

Author

Andrew MacLeod

Commit

8dcf4a63cf3f9fcceed9235066055f0ad7ef09ab

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
8dcf4a63cf3f9fcceed9235066055f0ad7ef09ab
source_type
github
headline
Save edge in remove_unreachable to handle block splits.
tldr
GCC's `remove_unreachable` optimization now saves edges instead of endpoints to correctly handle code block splits.
author
Andrew MacLeod
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • refactor
discussion_id_link
—
bugzilla_pr
—
date
2026-08-24T00:00:00.000Z

The remove_unreachable optimization in GCC’s tree-ssa pass has been updated to save edges rather than block endpoints. This change ensures that the optimization correctly handles situations where basic blocks are split during the process. A new test case, pr126999.c, has been added to verify this fix.