[llvm] [IntrinsicInst] Remove MemCpyInlineInst and MemSetInlineInst [nfc] (PR #138568)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon May 5 13:05:12 PDT 2025


================
@@ -1212,7 +1212,7 @@ bool MemCpyOptPass::processMemCpyMemCpyDependence(MemCpyInst *M,
     // Don't convert llvm.memcpy.inline into memmove because memmove can be
     // lowered as a call, and that is not allowed for llvm.memcpy.inline (and
     // there is no inline version of llvm.memmove)
-    if (isa<MemCpyInlineInst>(M))
+    if (auto *MCI = dyn_cast<MemCpyInst>(M); MCI && MCI->isForceInlined())
----------------
nikic wrote:

Isn't M already MemCpyInst here?

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


More information about the llvm-commits mailing list