diff options
author | hev <wangrui@loongson.cn> | 2024-08-02 11:28:03 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-02 11:28:03 +0800 |
commit | 8b26c02caaa002edc2d70af9e6a8024c4b1343cf (patch) | |
tree | 3b92d7ef0a49e3c0623e3e8c0e8325c8af5db7cb /llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp | |
parent | 7a134f5ec55d611fb51b50f2a4f32b2b18b44ea1 (diff) | |
download | llvm-8b26c02caaa002edc2d70af9e6a8024c4b1343cf.zip llvm-8b26c02caaa002edc2d70af9e6a8024c4b1343cf.tar.gz llvm-8b26c02caaa002edc2d70af9e6a8024c4b1343cf.tar.bz2 |
[LoongArch] Align stack objects passed to memory intrinsics (#101309)
Memcpy, and other memory intrinsics, typically try to use wider
load/store if the source and destination addresses are aligned. In
CodeGenPrepare, look for calls to memory intrinsics and, if the object
is on the stack, align it to 4-byte (32-bit) or 8-byte (64-bit)
boundaries if it is large enough that we expect memcpy to use wider
load/store instructions to copy it.
Fixes #101295
Diffstat (limited to 'llvm/lib/Target/X86/Disassembler/X86Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions