aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorGuillaume Chatelet <gchatelet@google.com>2022-06-17 13:28:47 +0000
committerGuillaume Chatelet <gchatelet@google.com>2022-06-17 14:22:26 +0000
commit7b73f53790f3db9ee589dc26a05a481a5e9e6915 (patch)
tree1999c6850bbed21d19220603f264819d263511ca /llvm/lib/CodeGen/MachineFunction.cpp
parent6c89c5314476452e2189cc80715032857a49c4e5 (diff)
downloadllvm-7b73f53790f3db9ee589dc26a05a481a5e9e6915.zip
llvm-7b73f53790f3db9ee589dc26a05a481a5e9e6915.tar.gz
llvm-7b73f53790f3db9ee589dc26a05a481a5e9e6915.tar.bz2
[libc] Rely on __builtin_memcpy_inline for memcpy implementation
This patch removes usage of `-mllvm -combiner-global-alias-analysis` and relies on compiler builtin to implement `memcpy`. Note that `-mllvm -combiner-global-alias-analysis` is actually only useful for functions where buffers can alias (namely `memcpy` and `memmove`). The other memory functions where not benefiting from the flag anyways. The upside is that the memory functions can now be compiled from source with thinlto (thinlto would not be able to carry on the flag when doing inlining). The downside is that for compilers other than clang (i.e. not providing `__builtin_memcpy_inline`) the codegen may be worse. Differential Revision: https://reviews.llvm.org/D128051
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions