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

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Mon May 5 14:01:36 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())
----------------
preames wrote:

Yep, thanks, that simplifies the code both here and below.  

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


More information about the llvm-commits mailing list