dotnet / runtimelab

This repo is for experimentation and exploring new ideas that may or may not make it into the main dotnet/runtime repo.
MIT License
1.38k stars 192 forks source link

[NativeAOT-LLVM] Optimize codegen for atomics #2448

Open SingleAccretion opened 8 months ago

SingleAccretion commented 8 months ago

2447 introduces a complete implementation, but there are still a few inefficiences:

1) isAddressAligned is not as smart as it could be. It should handle long fields, array elements, and static fields.

This would be a good issue for someone wanting to get familiar with NativeAOT-LLVM.