[llvm] [ScalarizeMaskedMemIntrin] Use pointer alignment from pointer of masked.compressstore/expandload. (PR #83519)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 29 21:00:49 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);
----------------
topperc wrote:
I think we should be using CI->getParamAlign here.
https://github.com/llvm/llvm-project/pull/83519
More information about the llvm-commits
mailing list