Landing: 740716f3b131
Project / Subsystem
gcc / avr
Date
2026-09-04
Author
Georg-Johann Lay
Commit
740716f3b13102b93489eec8f3238aa1f356fe0b
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- avr
- patch_id
- —
- commit_hash
- 740716f3b13102b93489eec8f3238aa1f356fe0b
- source_type
- github
- headline
- AVR debug insn handling fixed in 2-moves pass.
- tldr
- AVR's 2-moves optimization pass now correctly handles debug instructions, fixing failures with -fcompare-debug.
- author
- Georg-Johann Lay
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • avr
- • optimization
- • debugging
- • testing
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-04T00:00:00.000Z
The AVR-specific avr_pass_2moves optimization pass has been modified to correctly handle debug instructions. Previously, transformations within this pass could be affected by the presence or absence of debug insns, leading to failures when the -fcompare-debug flag was used. The changes ensure that instruction traversal and register use chain analysis correctly ignore debug insns, resolving regressions in specific test cases.