Skip to content

Commit

Permalink
[NFC] Use new version of SelectionDAG::getLoad in NVPTXLowerFormalArg…
Browse files Browse the repository at this point in the history
…uments

Let's use the new version of the API that helps tighten the alignment
values Semantic.

Differential Revision: https://reviews.llvm.org/D141830
  • Loading branch information
gchatelet committed Jan 24, 2023
1 parent 7b3c662 commit 8228b84
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions llvm/lib/Target/NVPTX/NVPTXISelLowering.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2745,11 +2745,11 @@ SDValue NVPTXTargetLowering::LowerFormalArguments(
DAG.getConstant(Offsets[VecIdx], dl, PtrVT));
Value *srcValue = Constant::getNullValue(PointerType::get(
EltVT.getTypeForEVT(F->getContext()), ADDRESS_SPACE_PARAM));
SDValue P =
DAG.getLoad(VecVT, dl, Root, VecAddr,
MachinePointerInfo(srcValue), aggregateIsPacked,
MachineMemOperand::MODereferenceable |
MachineMemOperand::MOInvariant);
SDValue P = DAG.getLoad(VecVT, dl, Root, VecAddr,
MachinePointerInfo(srcValue),
MaybeAlign(aggregateIsPacked ? 1 : 0),
MachineMemOperand::MODereferenceable |
MachineMemOperand::MOInvariant);
if (P.getNode())
P.getNode()->setIROrder(idx + 1);
for (unsigned j = 0; j < NumElts; ++j) {
Expand Down

0 comments on commit 8228b84

Please sign in to comment.