[llvm] [SystemZ] Improve handling of memmoves. (PR #196285)

Ömer Sinan Ağacan via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 25 06:25:17 PDT 2026


================
@@ -171,6 +174,7 @@ struct MemOp {
   bool allowOverlap() const { return AllowOverlap; }
   bool isMemset() const { return IsMemset; }
   bool isMemcpy() const { return !IsMemset; }
----------------
osa1 wrote:

This will now return `true` for `memmove`. Should it be `!IsMemset && !SrcDstMayOverlap`? (this change may require more changes downstream to do change `Op.isMemcpy()` to `Op.isMemcpy() || Op.isMemmove()`)

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


More information about the llvm-commits mailing list