[llvm] [DAG] Teach SelectionDAGBuilder to read parameter alignment of compressstore/expandload. (PR #83763)
Yeting Kuo via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 3 23:59:50 PST 2024
================
@@ -4746,6 +4748,8 @@ void SelectionDAGBuilder::visitMaskedLoad(const CallInst &I, bool IsExpanding) {
// @llvm.masked.expandload.*(Ptr, Mask, Src0)
Ptr = I.getArgOperand(0);
Alignment = std::nullopt;
+ if (MaybeAlign Align = I.getParamAlign(0))
+ Alignment = Align;
----------------
yetingk wrote:
I had addressed Craig's comment.
https://github.com/llvm/llvm-project/pull/83763
More information about the llvm-commits
mailing list