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

Push back against aligned loads/stores #70

Open
DenisYaroshevskiy opened this issue May 31, 2023 · 0 comments
Open

Push back against aligned loads/stores #70

DenisYaroshevskiy opened this issue May 31, 2023 · 0 comments

Comments

@DenisYaroshevskiy
Copy link

DenisYaroshevskiy commented May 31, 2023

This is a suggestion for simplification.

Arm has no aligned loads/stores, so this does nothing.
On modern x86 (I don't know how modern we talking) it's not recommended to use aligned operations.
Compiler can recognise __assume aligned and such if someone really wants it.

I believe you mentioned at some point that in your code you just call memcpy all the time.

So, how about we drop everything about alignment on loads stores?

Note: eve has aligned loads but it's because we know that when the pointer is aligned we don't need to do any masking on loads. I am not sure if the compiler is allowed to do that and even if its, "assume_aligned" should be good enough.

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

No branches or pull requests

1 participant