[llvm] [GlobalISel] Remove dead code. (NFC) (PR #145811)

Pete Chou via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 16:48:06 PDT 2025


================
@@ -10099,10 +10099,6 @@ LegalizerHelper::lowerMemCpyFamily(MachineInstr &MI, unsigned MaxLen) {
   }
 
   bool IsVolatile = MemOp->isVolatile();
-  if (Opc == TargetOpcode::G_MEMCPY_INLINE)
-    return lowerMemcpyInline(MI, Dst, Src, KnownLen, DstAlign, SrcAlign,
-                             IsVolatile);
-
----------------
petechou wrote:

Please help review the pr and merge it if it looks good. Thanks.

The assertion around L10073 should already test no G_MEMCPY_INLINE is expected. Actually, the code looks dead when it's first introduced in a642872, and is still kept in a later refactoring change 36527cb.

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


More information about the llvm-commits mailing list