Landing: f7a08d53ab30

Project / Subsystem

gcc / x86

Date

2026-04-30

Author

H.J. Lu

Commit

f7a08d53ab3074d1661d74a438932da6ed4879cc

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
x86
patch_id
commit_hash
f7a08d53ab3074d1661d74a438932da6ed4879cc
source_type
github
headline
x86: Disable 16-bit immediate stores when TARGET_LCP_STALL is enabled
tldr
Avoid 16-bit immediate integer store when TARGET_LCP_STALL is enabled.
author
H.J. Lu
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • x86
  • optimization
  • performance
  • instruction selection
discussion_id_link
bugzilla_pr
date
2026-04-30T00:00:00.000Z

This commit disables 16-bit immediate integer stores when TARGET_LCP_STALL is enabled in GCC’s x86 backend. The change avoids performance stalls on certain x86 processors. By updating the V_16_32_64:*mov<mode>_imm pattern, the compiler now avoids generating 16-bit immediate stores when TARGET_LCP_STALL is active, potentially improving performance on affected CPUs.