<atomic>: std::atomic should use ARM v8.1 and v8.2 instructions where safe
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 11.1k
- Forks
- 1.7k
- Avg merge
- 4d 15h
- Merged PRs (30d)
- 22
Description
In the following blog post a user points out that our compiler always uses the load-linked/store-conditional subset of ARM, even on hardware with better solutions.
https://megayuchi.com/2019/12/08/surface-pro-x-benchmark-from-the-programmers-point-of-view/
We should work with our hardware partners to determine in which places we can emit better instructions given a CPU feature test.
I have asked folks who own these parts of the compiler to indicate here which specific intrinsics they want us to call.
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.
Research direction
Start by reading the linked blog post and reviewing the atomic-related compiler parts referenced in the issue. Identify which ARM v8.1 and v8.2 instructions could safely replace load-linked/store-conditional operations under CPU feature tests, then confirm the specific intrinsics and completion criteria with the hardware and compiler owners.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- performance
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100