[llvm] [SelectionDAG] zext/trunc size of memory libcalls to target pointer size (PR #226672)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 30 02:00:36 PDT 2026


================
@@ -10266,6 +10255,7 @@ SDValue SelectionDAG::getMemmove(SDValue Chain, const SDLoc &dl, SDValue Dst,
                                  MachinePointerInfo SrcPtrInfo,
                                  const AAMDNodes &AAInfo,
                                  BatchAAResults *BatchAA) {
+  Size = getZExtOrTrunc(Size, dl, TLI->getPointerTy(getDataLayout()));
----------------
arsenm wrote:

This should respect the address space from the MachinePointerInfos 

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


More information about the llvm-commits mailing list