Landing: ab10e6697f94
Project / Subsystem
gcc / x86_cse
Date
2026-05-09
Author
H.J. Lu
Commit
ab10e6697f941d4c6a70242dcf1db1db84484113
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- x86_cse
- patch_id
- —
- commit_hash
- ab10e6697f941d4c6a70242dcf1db1db84484113
- source_type
- github
- headline
- x86: Converts vector load to constant integer load.
- tldr
- The x86 compiler now converts vector loads to constant integer loads for better optimization.
- author
- H.J. Lu
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • x86
- • optimization
- • vector load
- • constant integer
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-09T00:00:00.000Z
The x86 compiler can now convert vector loads to constant integer loads in certain cases, which enables better optimization. This commit introduces a new optimization pass that identifies vector loads of constant integers and replaces them with scalar integer loads. A new test case, gcc.target/i386/pr125238.c, validates the optimization.