[llvm] r319704 - AMDGPU: Use return value of MorphNodeTo
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 14:18:22 PST 2017
Author: arsenm
Date: Mon Dec 4 14:18:22 2017
New Revision: 319704
URL: http://llvm.org/viewvc/llvm-project?rev=319704&view=rev
Log:
AMDGPU: Use return value of MorphNodeTo
Modified:
llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp?rev=319704&r1=319703&r2=319704&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp Mon Dec 4 14:18:22 2017
@@ -356,9 +356,7 @@ SDNode *AMDGPUDAGToDAGISel::glueCopyToM0
Ops.push_back(N->getOperand(i));
}
Ops.push_back(Glue);
- CurDAG->MorphNodeTo(N, N->getOpcode(), N->getVTList(), Ops);
-
- return N;
+ return CurDAG->MorphNodeTo(N, N->getOpcode(), N->getVTList(), Ops);
}
static unsigned selectSGPRVectorRegClassID(unsigned NumVectorElts) {
More information about the llvm-commits
mailing list