Landing: 812eccfa4da0
Project / Subsystem
gcc / xtensa
Date
2026-09-12
Author
Takayuki 'January June' Suwa
Commit
812eccfa4da088eac83353f4d311a394c2886c7b
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- xtensa
- patch_id
- —
- commit_hash
- 812eccfa4da088eac83353f4d311a394c2886c7b
- source_type
- github
- headline
- XTENSA: Eliminate redundant macros for register number definitions
- tldr
- Xtensa target code simplifies register class definitions by removing redundant macros and using range checks directly.
- author
- Takayuki 'January June' Suwa
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • xtensa
- • macros
- • cleanup
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-12T00:00:00.000Z
Several constant macros defining the number of general-purpose, branch, floating-point, and accumulator registers on the Xtensa target have been eliminated. Instead of using these intermediate macros, the register class predicate macros (e.g., GP_REG_P) now directly use the IN_RANGE() macro with the start and end numbers of the respective hardware registers. This change reduces code redundancy and simplifies the header files.