Landing: 8c8f688fd8d9
Project / Subsystem
gcc / gcc/ssa_operands
Date
2026-05-15
Author
Andrew Pinski
Commit
8c8f688fd8d936859dda5cd2eea88f0b22b6c189
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc/ssa_operands
- patch_id
- —
- commit_hash
- 8c8f688fd8d936859dda5cd2eea88f0b22b6c189
- source_type
- github
- headline
- ssa_operands: Speed up GIMPLE_SWITCH handling
- tldr
- GCC's SSA operand scanner now processes only the index operand of GIMPLE_SWITCH statements, improving performance.
- author
- Andrew Pinski
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • ssa
- • gimple
- • switch
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-15T00:00:00.000Z
The operands_scanner::parse_ssa_operands function now only processes the index operand of GIMPLE_SWITCH statements, skipping the case labels. Since the case labels are skipped anyway, this change reduces the amount of work performed by the operand scanner, leading to faster compilation times. This change is also presented as a preliminary step in modifying GIMPLE_SWITCH slightly.