Landing: 6f3864e2d29f
Project / Subsystem
gcc / x86_cse
Date
2026-05-09
Author
H.J. Lu
Commit
6f3864e2d29ff46e11d7f6cf1dfc0dd4b0ebc40d
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- x86_cse
- patch_id
- —
- commit_hash
- 6f3864e2d29ff46e11d7f6cf1dfc0dd4b0ebc40d
- source_type
- github
- headline
- x86_cse: Add a Test for PR target/125245
- tldr
- A new test case is added to verify the fix for PR target/125245, which involves checking CONST0_RTX and CONSTM1_RTX in the x86 common subexpression elimination…
- author
- H.J. Lu
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • x86
- • cse
- • optimization
- • test
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-05-09T00:00:00.000Z
This commit adds a new test case to verify the fix for PR target/125245. The bug involved the x86 common subexpression elimination (CSE) pass not correctly handling CONST0_RTX and CONSTM1_RTX when dealing with constant vectors. The new test ensures that redundant vector loads are properly replaced, leading to more efficient code generation.