[llvm] [DAG] Teach SelectionDAGBuilder to read parameter alignment of compressstore/expandload. (PR #83763)
Yeting Kuo via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 4 22:21:29 PST 2024
================
@@ -4721,24 +4721,24 @@ void SelectionDAGBuilder::visitMaskedStore(const CallInst &I,
SDLoc sdl = getCurSDLoc();
auto getMaskedStoreOps = [&](Value *&Ptr, Value *&Mask, Value *&Src0,
- MaybeAlign &Alignment) {
+ Align &Alignment) {
// llvm.masked.store.*(Src0, Ptr, alignment, Mask)
Src0 = I.getArgOperand(0);
Ptr = I.getArgOperand(1);
- Alignment = cast<ConstantInt>(I.getArgOperand(2))->getMaybeAlignValue();
+ Alignment = cast<ConstantInt>(I.getArgOperand(2))->getAlignValue();
----------------
yetingk wrote:
The LangRef tells that the alignment value of masked.load/store should be power of 2, so I think we could ignore the case.
https://github.com/llvm/llvm-project/pull/83763
More information about the llvm-commits
mailing list