Landing: 6dd8d07444ba
Project / Subsystem
gcc / sh
Date
2026-06-08
Author
Richard Sandiford
Commit
6dd8d07444baa41f62426990c8768f746c79fb79
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- sh
- patch_id
- —
- commit_hash
- 6dd8d07444baa41f62426990c8768f746c79fb79
- source_type
- github
- headline
- SH removes can_create_pseudo_p check
- tldr
- This commit removes a redundant `can_create_pseudo_p` check from the SH backend, simplifying optab instruction definitions.
- author
- Richard Sandiford
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • sh
- • refactor
- • backend
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-06-08T00:00:00.000Z
The can_create_pseudo_p check in the bswapsi instruction pattern for the SH architecture has been removed. This check proved redundant because optab instruction conditions are cached and do not adapt to different compilation phases. General-purpose arithmetic optabs like bswap can only be used when can_create_pseudo_p is logically true, making the explicit check unnecessary and simplifying the instruction definition.