[PATCH] D25203: AMDGPU/SI: LowerParameter() should be computing align based on memory type

Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 10:06:06 PDT 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL284398: AMDGPU/SI: LowerParameter() should be computing align based on memory type (authored by tstellar).

Changed prior to commit:
  https://reviews.llvm.org/D25203?vs=73310&id=74866#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D25203

Files:
  llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp


Index: llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp
@@ -586,7 +586,7 @@
                                          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));
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25203.74866.patch
Type: text/x-patch
Size: 684 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161017/5d3bad25/attachment.bin>


More information about the llvm-commits mailing list