Landing: 3cdc8d7974e9
Project / Subsystem
gcc / icf
Date
2026-05-15
Author
Andrew Pinski
Commit
3cdc8d7974e9c12aa8a2e585a4e177755ff08010
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- icf
- patch_id
- —
- commit_hash
- 3cdc8d7974e9c12aa8a2e585a4e177755ff08010
- source_type
- github
- headline
- ICF: Remove redundant check for CASE_LABEL_EXPR.
- tldr
- Removes a redundant check in the compiler's identical code folding pass, simplifying the code.
- author
- Andrew Pinski
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • icf
- • code simplification
- • switch statement
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-15T00:00:00.000Z
The identical code folding (ICF) pass had a redundant check for CASE_LABEL_EXPR after already using CASE_LOW/CASE_HIGH on the same value. This commit removes that check, simplifying the code.