[llvm] [ScalarizeMaskedMemIntrin] Use pointer alignment from pointer of masked.compressstore/expandload. (PR #83519)
Yeting Kuo via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 23:20:56 PST 2024
================
@@ -627,6 +627,7 @@ static void scalarizeMaskedExpandLoad(const DataLayout &DL, CallInst *CI,
Value *Ptr = CI->getArgOperand(0);
Value *Mask = CI->getArgOperand(1);
Value *PassThru = CI->getArgOperand(2);
+ Align Alignment = Ptr->getPointerAlignment(DL);
----------------
yetingk wrote:
Done.
https://github.com/llvm/llvm-project/pull/83519
More information about the llvm-commits
mailing list