Landing: 899588f3cc1a

Project / Subsystem

gcc / sh

Date

2026-07-04

Author

Oleg Endo

Commit

899588f3cc1afe045904a238cb060d4254497c2f

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
sh
patch_id
commit_hash
899588f3cc1afe045904a238cb060d4254497c2f
source_type
github
headline
SH: Avoid FPUL for fp-constant loads
tldr
Optimizes floating-point constant loads on SH by avoiding unnecessary use of FPUL register.
author
Oleg Endo
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • sh
  • optimization
  • register-allocation
discussion_id_link
bugzilla_pr
date
2026-07-04T00:00:00.000Z

This commit optimizes floating-point constant loads on the SH architecture by adjusting instruction patterns. Specifically, it changes the constraint for a constant-pool load from FPUL-specific to a more general one, discouraging FPUL usage for regular floating-point registers while still allowing it when necessary. This change aims to improve performance by preferring dedicated floating-point registers.