[llvm] [SelectionDAG] Pass dest and src alignments separately to memcpy and memmove lowering functions (PR #201119)

Ömer Sinan Ağacan via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 3 00:52:28 PDT 2026


================
@@ -6732,13 +6732,12 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
     // @llvm.memcpy.inline defines 0 and 1 to both mean no alignment.
     Align DstAlign = MCI.getDestAlign().valueOrOne();
     Align SrcAlign = MCI.getSourceAlign().valueOrOne();
-    Align Alignment = std::min(DstAlign, SrcAlign);
     bool isVol = MCI.isVolatile();
     // FIXME: Support passing different dest/src alignments to the memcpy DAG
----------------
osa1 wrote:

Thanks, removed two relevant FIXMEs.

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


More information about the llvm-commits mailing list