diff options
author | Justin Bogner <mail@justinbogner.com> | 2016-05-13 06:37:53 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2016-05-13 06:37:53 +0000 |
commit | 9469fe7de39219a6b7dc676c0ffefe035ace36ce (patch) | |
tree | 843539e0b7e885b3f5866adf305c052e11c9fd4f | |
parent | 9be3b8b9bb72e88eeff0c7cba458d328a2947f7a (diff) | |
download | bcm5719-llvm-9469fe7de39219a6b7dc676c0ffefe035ace36ce.tar.gz bcm5719-llvm-9469fe7de39219a6b7dc676c0ffefe035ace36ce.zip |
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.
llvm-svn: 269396
-rw-r--r-- | llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp index 990f101f767..cd4603e2cf1 100644 --- a/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp +++ b/llvm/lib/Target/Sparc/SparcISelDAGToDAG.cpp @@ -372,6 +372,7 @@ SDNode *SparcDAGToDAGISel::SelectImpl(SDNode *N) { 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; } } |