Landing: 5b0d2e93e1ad
Project / Subsystem
gcc / risc-v
Date
2026-07-21
Author
Robin Dapp
Commit
5b0d2e93e1ad39ee6f731abeee2e8846bcf5da93
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- risc-v
- patch_id
- —
- commit_hash
- 5b0d2e93e1ad39ee6f731abeee2e8846bcf5da93
- source_type
- github
- headline
- RISC-V: Use ordered scatter variants.
- tldr
- RISC-V vectorizer now uses ordered scatter operations, ensuring correct behavior for the vectorizer.
- author
- Robin Dapp
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • risc-v
- • vectorization
- • scatter
- • optimization
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-07-21T00:00:00.000Z
The RISC-V vectorizer has been updated to use ordered scatter variants instead of unordered ones. This change is necessary because the vectorizer expects scatter operations to write data in a specific, ordered sequence. By using the ordered indexed stores, the compiler ensures that this expectation is met, thereby improving the correctness and reliability of vector code generation for RISC-V.