llvm / llvm/llvm-project

[libc++] Should we add alignment assumptions in std::span iterators?

Open
#169,084 2 comments 0 reactions 1 assignee Claimed by @ldionne View on GitHub
libc++ performance
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

Just like we added alignment assumptions to `std::vector::begin()` to ease vectorization and other optimizations, we could do the same for `std::span`. Is there value in doing that? Is it legal for us to do that?

I think the answer to both of these questions is "yes", but I'm creating this issue so we can investigate properly.

CC @AbhayKanhere @fhahn

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.