Landing: fa82fc957bcc

Project / Subsystem

gcc / gcc

Date

2026-09-29

Author

Eric Botcazou

Commit

fa82fc957bccc0f29f2b41e66d1881ba821369ea

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
—
commit_hash
fa82fc957bccc0f29f2b41e66d1881ba821369ea
source_type
github
headline
Fix pasto in optimize_agr_copyprop_1
tldr
Corrects EH edge purging logic in copy propagation.
author
Eric Botcazou
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-09-29T00:00:00.000Z

This commit fixes an error in the optimize_agr_copyprop_1 function within the copy propagation pass. Previously, it incorrectly used the basic block index of the statement being processed (stmt) to purge exception handling (EH) edges. The fix changes this to use the basic block index of the USE_STMT, which is the correct operand for this operation, resolving failures in several ACATS tests.