Landing: 6b1ffdc83171

Project / Subsystem

gcc / x86_64

Date

2026-09-22

Author

Roger Sayle

Commit

6b1ffdc831718b1e7639d25c37ea1cdef48e1b53

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
x86_64
patch_id
—
commit_hash
6b1ffdc831718b1e7639d25c37ea1cdef48e1b53
source_type
github
headline
x86_64: Optimize 128-bit TImode moves using SSE2
tldr
Improves 128-bit TImode moves between SSE and GPRs on x86_64 using SSE2, avoiding stack transfers.
author
Roger Sayle
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • x86_64
  • • optimization
  • • sse2
  • • compiler
discussion_id_link
—
bugzilla_pr
—
date
2026-09-22T00:00:00.000Z

This patch optimizes 128-bit TImode (128-bit integer) moves between SSE and general-purpose registers on x86_64 systems supporting SSE2. Previously, such moves often involved costly stack operations. The new implementation leverages SSE2’s shufpd instruction to perform these moves directly, reducing instruction count and improving performance. This is a partial fix for PR target/114544.