Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize non-relaxed load/store on pre-v6 ARM Linux/Android #112

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

taiki-e
Copy link
Owner

@taiki-e taiki-e commented Jul 31, 2023

LLVM calls __sync_val_compare_and_swap_N/__sync_lock_test_and_set_N for them, but we can use ldr/str+__kuser_memory_barrier on Linux/Android.

This should also fix the problem that wide seqlock, which uses several acquire loads, is slower than spinlock on these targets. #82 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
O-arm Target: ARM processors (arm, thumb and AArch64 targets)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant