Landing: 21ba2767ffb5

Project / Subsystem

gcc / alpha

Date

2026-09-20

Author

Matt Turner

Commit

21ba2767ffb57effeb2c105b5069fd176284e7e9

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
alpha
patch_id
—
commit_hash
21ba2767ffb57effeb2c105b5069fd176284e7e9
source_type
github
headline
Provide movmisalign patterns for scalar integer modes
tldr
Alpha backend now supports unaligned scalar memory moves, improving code generation.
author
Matt Turner
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • alpha
  • • optimization
  • • unaligned access
  • • code generation
discussion_id_link
—
bugzilla_pr
—
date
2026-09-20T00:00:00.000Z

This commit adds support for unaligned memory move operations for scalar integer modes on the Alpha architecture. Previously, only vector modes had movmisalign patterns, forcing small memcpy operations to be expanded inefficiently with stack slots or byte-by-byte copies. By extending movmisalign to scalar modes and deriving access size from the mode, small memory operations are now folded directly into unaligned loads/stores, eliminating unnecessary stack usage and improving performance.