| commit | 6c84bba218f7b64f2257405ac30a3c6948df8373 | [log] [tgz] |
|---|---|---|
| author | Fabian Ritter <fabian.ritter@amd.com> | Wed Jul 10 11:29:26 2024 +0200 |
| committer | GitHub <noreply@github.com> | Wed Jul 10 11:29:26 2024 +0200 |
| tree | 4db7df5bf8a154fcc3ceaca88f5606c5fac2edc9 | |
| parent | 42672199ec2e2a1d38c3f52305e3846b0ec681ed [diff] |
[LowerMemIntrinsics] Use correct alignment in residual loop for variable llvm.memcpy (#97998) Memcpy intrinsics with statically unknown loop sizes are lowered with two load/store loops: one with access widths specified by the target, and a residual loop that copies remaining bytes individually. As the residual loop operates byte-wise, its accesses are only 1-aligned. However, we currently use the alignment that is optimal for the first loop in both, which is unsound. With this patch, we use the correct alignment in the residual loop. The lowering of memcpy with a static size already handles alignments for the residual correctly.
Welcome to the LLVM project!
This repository contains the source code for LLVM, a toolkit for the construction of highly optimized compilers, optimizers, and run-time environments.
The LLVM project has multiple components. The core of the project is itself called “LLVM”. This contains all of the tools, libraries, and header files needed to process intermediate representations and convert them into object files. Tools include an assembler, disassembler, bitcode analyzer, and bitcode optimizer.
C-like languages use the Clang frontend. This component compiles C, C++, Objective-C, and Objective-C++ code into LLVM bitcode -- and from there into object files, using LLVM.
Other components include: the libc++ C++ standard library, the LLD linker, and more.
Consult the Getting Started with LLVM page for information on building and running LLVM.
For information on how to contribute to the LLVM project, please take a look at the Contributing to LLVM guide.
Join the LLVM Discourse forums, Discord chat, LLVM Office Hours or Regular sync-ups.
The LLVM project has adopted a code of conduct for participants to all modes of communication within the project.