microsoft / microsoft/STL

<atomic>: std::atomic should use ARM v8.1 and v8.2 instructions where safe

Open
#488 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

ARM64 performance
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.