[llvm] r269396 - SDAG: Clean up a dangling node in SparcISelDAGToDAG::SelectImpl
Justin Bogner via llvm-commits
llvm-commits at lists.llvm.org
Thu May 12 23:37:53 PDT 2016
Author: bogner
Date: Fri May 13 01:37:53 2016
New Revision: 269396
URL: http://llvm.org/viewvc/llvm-project?rev=269396&view=rev
Log:
SDAG: Clean up a dangling node in SparcISelDAGToDAG::SelectImpl
When we convert to the void Select interface, leaving unreferenced
nodes around won't be allowed anymore.
Part of llvm.org/pr26808.
Modified:
llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp
Modified: llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp?rev=269396&r1=269395&r2=269396&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcISelDAGToDAG.cpp Fri May 13 01:37:53 2016
@@ -372,6 +372,7 @@ SDNode *SparcDAGToDAGISel::SelectImpl(SD
CurDAG->getMachineNode(Opcode, dl, MVT::i32, MVT::i32, MulLHS, MulRHS);
SDValue ResultHigh = SDValue(Mul, 1);
ReplaceUses(SDValue(N, 0), ResultHigh);
+ CurDAG->RemoveDeadNode(N);
return nullptr;
}
}
More information about the llvm-commits
mailing list