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

feat(singlepass): use SIMD insts for popcount #4526

Merged
merged 6 commits into from
Mar 28, 2024
Merged

feat(singlepass): use SIMD insts for popcount #4526

merged 6 commits into from
Mar 28, 2024

Conversation

xdoardo
Copy link
Contributor

@xdoardo xdoardo commented Mar 27, 2024

Tackles #4422.

@xdoardo xdoardo requested a review from syrusakbary as a code owner March 27, 2024 14:37
Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use Wasmer::CPUFeatures to detect if chipset is NEON (using https://doc.rust-lang.org/std/arch/macro.is_aarch64_feature_detected.html )

(note: we should update CPUFeatures to have a new enum choice for NEON)

https://naqvis.github.io/wasmer-crystal/Wasmer/CpuFeatures.html

And update the code accordingly.

Copy link
Member

@syrusakbary syrusakbary left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good once the last comments are addressed

lib/compiler-singlepass/src/machine_arm64.rs Outdated Show resolved Hide resolved
@xdoardo xdoardo merged commit 3884a5d into wasmerio:master Mar 28, 2024
59 checks passed
@xdoardo xdoardo deleted the 4422-improve-singlepass-performance-on-aarch64-popcnt-select branch March 28, 2024 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants