AMDGPU/SI: LowerParameter() should be computing align based on memory type
Reviewers: arsenm Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, tony-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D25203 llvm-svn: 284398
This commit is contained in:
parent
bc6c523cce
commit
083f1626f5
|
@ -586,7 +586,7 @@ SDValue SITargetLowering::LowerParameter(SelectionDAG &DAG, EVT VT, EVT MemVT,
|
|||
const SDLoc &SL, SDValue Chain,
|
||||
unsigned Offset, bool Signed) const {
|
||||
const DataLayout &DL = DAG.getDataLayout();
|
||||
Type *Ty = VT.getTypeForEVT(*DAG.getContext());
|
||||
Type *Ty = MemVT.getTypeForEVT(*DAG.getContext());
|
||||
PointerType *PtrTy = PointerType::get(Ty, AMDGPUAS::CONSTANT_ADDRESS);
|
||||
MachinePointerInfo PtrInfo(UndefValue::get(PtrTy));
|
||||
|
||||
|
|
Loading…
Reference in New Issue