Landing: 7c328e9eeadf
Project / Subsystem
gcc / gcc
Date
2026-05-17
Author
Andrew Pinski
Commit
7c328e9eeadf66f33758764d24151b9eb680c1f0
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- gcc
- patch_id
- —
- commit_hash
- 7c328e9eeadf66f33758764d24151b9eb680c1f0
- source_type
- github
- headline
- Switch-conv: Stabilize qsort in case_bit_test by using target BB index.
- tldr
- The switch conversion code now uses the target basic block index to stabilize qsort, removing the need for a label in `case_bit_test`.
- author
- Andrew Pinski
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • optimization
- • switch statement
- • code generation
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-17T00:00:00.000Z
The switch conversion code now uses the target basic block’s index to ensure a stable sort order in case_bit_test, instead of a label. This simplifies the code by removing the label field from case_bit_test. This change should have no user-visible impact, but improves internal code structure.