[compiler-rt] [compiler-rt][ASan] Add function moving annotations (PR #91702)

Nikolas Klauser via llvm-commits llvm-commits at lists.llvm.org
Wed May 22 02:04:33 PDT 2024


philnik777 wrote:

> > trivial relocation is also interesting for erasing object from a vector, so the builtins should probably be more akin to a memmove than a memcpy.
> 
> Should we change `__builtin_memcpy` to `__builtin_memmove`? Then I would have to add support for overlapping areas to this PR. (It complicates the implementation a little bit.)

Yes. My plan is to change the `__builtin_memcpy` to `__builtin_memmove` in `__uninitialized_allocator_relocate` to implement more optimizations in `vector`.


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


More information about the llvm-commits mailing list