mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
AMDGPU/R600: Return correct chain when lowering loads
The other LowerLOAD should be returning the correct chain. llvm-svn: 241839
This commit is contained in:
parent
6b9a30bed3
commit
6e942cb09c
@ -1460,14 +1460,8 @@ SDValue R600TargetLowering::LowerLOAD(SDValue Op, SelectionDAG &DAG) const
|
||||
SDValue Ptr = Op.getOperand(1);
|
||||
SDValue LoweredLoad;
|
||||
|
||||
SDValue Ret = AMDGPUTargetLowering::LowerLOAD(Op, DAG);
|
||||
if (Ret.getNode()) {
|
||||
SDValue Ops[2] = {
|
||||
Ret,
|
||||
Chain
|
||||
};
|
||||
return DAG.getMergeValues(Ops, DL);
|
||||
}
|
||||
if (SDValue Ret = AMDGPUTargetLowering::LowerLOAD(Op, DAG))
|
||||
return Ret;
|
||||
|
||||
// Lower loads constant address space global variable loads
|
||||
if (LoadNode->getAddressSpace() == AMDGPUAS::CONSTANT_ADDRESS &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user