Can non-temporal loads use the LLVM intrinsic instead?
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 48/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Quiet
- Tech stack
- rust
- Domain
- compilers, performance
Research direction
Start by locating the non-temporal load implementation and compare its generated code with the LLVM intrinsic approach discussed in the issue and linked references. Use the provided Godbolt example to verify that the change produces better code, then run the relevant existing tests and confirm non-temporal loads retain their expected behavior.
Written by the indexing model from the issue text.
Description
According to @Amanieu:
I checked and only non-temporal stores have special memory orderings on x86. x86 non-temporal loads work just like normal loads.
Using inline assembly produces suboptimal code, see https://godbolt.org/z/os8bG3Efr.
References:
- Dominant language
- Rust
- Stars
- 694
- Forks
- 336
- Avg merge
- 5d 14h
- Merged PRs (30d)
- 9
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rust-lang/stdarch
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
A-x86 P-high
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 4/5 3-5 days Newbie friendliness 52/100
All issues in rust-lang/stdarch
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100