Landing: a71504c4120d

Project / Subsystem

gcc / hppa

Date

2026-10-05

Author

John David Anglin

Commit

a71504c4120daff6fc2ae198fc588e1ce5acaa93

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
hppa
patch_id
—
commit_hash
a71504c4120daff6fc2ae198fc588e1ce5acaa93
source_type
github
headline
hppa: Fix hppa_rtx_costs_shadd_p to handle subregs in inner operands
tldr
Fixes the HPPA backend to correctly handle subregister operands in cost calculations for the 'shadd' instruction.
author
John David Anglin
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • hppa
  • • bugfix
discussion_id_link
—
bugzilla_pr
—
date
2026-10-05T00:00:00.000Z

The HPPA backend’s cost calculation for the shadd instruction has been fixed to properly handle subregister operands. Previously, hppa_rtx_costs_shadd_p did not correctly strip SUBREG wrappers from inner operands, leading to incorrect cost estimations and issues with certain patterns on specific HPPA configurations.