Landing: 8a0eb13732d0
Project / Subsystem
gcc / gcc/avr
Date
2026-09-12
Author
Georg-Johann Lay
Commit
8a0eb13732d088f52b1d2e7694d385bf7b7c95ad
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/avr
- patch_id
- —
- commit_hash
- 8a0eb13732d088f52b1d2e7694d385bf7b7c95ad
- source_type
- github
- headline
- Make AVR `casesi` pass controllable via new command-line option.
- tldr
- AVR `casesi` pass can now be controlled with the new `-mdemote-switch` option.
- author
- Georg-Johann Lay
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • avr
- • optimization
- • compiler pass
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-12T00:00:00.000Z
The AVR-specific avr_pass_casesi optimization pass is now controlled by a new command-line option, -mdemote-switch. This option is enabled by default when optimizations are active, mirroring the previous behavior of the pass’s gate function. This change provides explicit control over the casesi pass for AVR targets.