This is an archive of the discontinued LLVM Phabricator instance.

BLAKE3: do not try to use neon on big-endian aarch64
AbandonedPublic

Authored by MaskRay on Nov 27 2022, 7:46 AM.

Details

Summary

...because this will later on hit

#error "This implementation only supports little-endian ARM."

in blake3_neon.c.

Diff Detail

Event Timeline

he32 created this revision.Nov 27 2022, 7:46 AM
Herald added a project: Restricted Project. · View Herald Transcript
he32 requested review of this revision.Nov 27 2022, 7:46 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 27 2022, 7:46 AM
gkistanova resigned from this revision.Nov 29 2022, 10:25 AM

Doesn't look like I'm a good reviewer for the proposed patch.

he32 added a comment.EditedDec 17 2022, 5:20 AM

Last reviewer resigned, despite this being a fairly trivial change which blocks big-endian arm64 from building.
Can someone else please take a look at reviewing this trivial change?
(I did not find a suitable action to do this automatically, and am not comfortable pointing to anyone in specific...)

he32 edited reviewers, added: krytarowski; removed: gkistanova.Dec 27 2022, 2:42 PM

Could you please take a look at this rather simple diff, fixing the build on BE aarch64.

Can you report the problem on https://github.com/BLAKE3-team/BLAKE3 ? We can back port fixes there.

he32 added a comment.Dec 28 2022, 5:16 AM

Thanks for the hint / redirect.
I've submitted a pull request at https://github.com/BLAKE3-team/BLAKE3/pull/280

Thanks for the hint / redirect.
I've submitted a pull request at https://github.com/BLAKE3-team/BLAKE3/pull/280

Thank you! If we take the patch here, we may risk losing the change when someone upgrades BLAKE3. So it's better to ensure that it works in the upstream...

Thanks for the hint / redirect.
I've submitted a pull request at https://github.com/BLAKE3-team/BLAKE3/pull/280

Thank you! If we take the patch here, we may risk losing the change when someone upgrades BLAKE3. So it's better to ensure that it works in the upstream...

Can’t we have a test/bot for that? Seems awkward to depend on this getting integrated upstream first. This is just unblocking builds so I’d be inclined to take it…

MaskRay commandeered this revision.Sep 19 2023, 5:30 PM
MaskRay edited reviewers, added: he32; removed: MaskRay.

Obsoleted by D159156. Upstream BLAKE3 has applied this diff https://github.com/BLAKE3-team/BLAKE3/pull/280

MaskRay abandoned this revision.Sep 19 2023, 5:30 PM