[llvm] r284398 - AMDGPU/SI: LowerParameter() should be computing align based on memory type
Tom Stellard via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 17 09:56:19 PDT 2016
Author: tstellar
Date: Mon Oct 17 11:56:19 2016
New Revision: 284398
URL: http://llvm.org/viewvc/llvm-project?rev=284398&view=rev
Log:
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
Modified:
llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp?rev=284398&r1=284397&r2=284398&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Mon Oct 17 11:56:19 2016
@@ -586,7 +586,7 @@ SDValue SITargetLowering::LowerParameter
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));
More information about the llvm-commits
mailing list