[llvm] [BPF] Consider alignment when selecting memcpy/memmove/memset op type (PR #204042)

Ömer Sinan Ağacan via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 22 11:02:56 PDT 2026


osa1 wrote:

@alexfh Could you use `llvm.memcpy.inline` if you don't have access to libc? (`__builtin_memcpy_inline`)

(It generates terrible code in your godbolt example but (1) it will work without libc (2) generated code should be improved anyway to generate a loop when the size constant but large)

https://github.com/llvm/llvm-project/pull/204042


More information about the llvm-commits mailing list