[llvm] r241954 - AMDGPU: Use requested chain when lowering arguments

Matt Arsenault Matthew.Arsenault at amd.com
Fri Jul 10 15:28:41 PDT 2015


Author: arsenm
Date: Fri Jul 10 17:28:41 2015
New Revision: 241954

URL: http://llvm.org/viewvc/llvm-project?rev=241954&view=rev
Log:
AMDGPU: Use requested chain when lowering arguments

No test since I'm not aware of any case where this will
end up being a different chain.

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=241954&r1=241953&r2=241954&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIISelLowering.cpp Fri Jul 10 17:28:41 2015
@@ -588,7 +588,7 @@ SDValue SITargetLowering::LowerFormalArg
                               VA.getLocMemOffset();
       // The first 36 bytes of the input buffer contains information about
       // thread group and global sizes.
-      SDValue Arg = LowerParameter(DAG, VT, MemVT,  DL, DAG.getRoot(),
+      SDValue Arg = LowerParameter(DAG, VT, MemVT,  DL, Chain,
                                    Offset, Ins[i].Flags.isSExt());
 
       const PointerType *ParamTy =





More information about the llvm-commits mailing list