[llvm] [SelectionDAG] Update MemOp to distinguish memmove from memcpy (PR #206005)
Ömer Sinan Ağacan via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 26 05:21:52 PDT 2026
================
@@ -1229,7 +1229,8 @@ int ARMTTIImpl::getNumMemOps(const IntrinsicInst *I) const {
const Align DstAlign = MC->getDestAlign().valueOrOne();
const Align SrcAlign = MC->getSourceAlign().valueOrOne();
- MOp = MemOp::Copy(Size, /*DstAlignCanChange*/ false, DstAlign, SrcAlign,
+ // Use the most restrictive of memset, memcpy, memmove.
----------------
osa1 wrote:
Yeah, I don't think you even had a way to distinguishing them before this PR. (otherwise I'd suggest it in #196285 and not create this PR)
https://github.com/llvm/llvm-project/pull/206005
More information about the llvm-commits
mailing list