[llvm] [GlobalISel] Fix volatile flag handling in memmove legalizer (PR #206025)
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 21 07:38:00 PDT 2026
================
@@ -10969,16 +10970,20 @@ LegalizerHelper::lowerMemcpy(MachineInstr &MI, Register Dst, Register Src,
unsigned CurrOffset = 0;
unsigned Size = KnownLen;
for (auto CopyTy : MemOps) {
- // Issuing an unaligned load / store pair that overlaps with the previous
- // pair. Adjust the offset accordingly.
- if (CopyTy.getSizeInBytes() > Size)
- CurrOffset -= CopyTy.getSizeInBytes() - Size;
+ unsigned TySize = CopyTy.getSizeInBytes();
----------------
arsenm wrote:
Keep in terms of TypeSize?
https://github.com/llvm/llvm-project/pull/206025
More information about the llvm-commits
mailing list