OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a934d5c
)
SDAG: Clean up a dangling node in SparcISelDAGToDAG::SelectImpl
author
Justin Bogner
<mail@justinbogner.com>
Fri, 13 May 2016 06:37:53 +0000
(06:37 +0000)
committer
Justin Bogner
<mail@justinbogner.com>
Fri, 13 May 2016 06:37:53 +0000
(06:37 +0000)
When we convert to the void Select interface, leaving unreferenced
nodes around won't be allowed anymore.
Part of llvm.org/pr26808.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269396
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Sparc/SparcISelDAGToDAG.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Sparc/SparcISelDAGToDAG.cpp
b/lib/Target/Sparc/SparcISelDAGToDAG.cpp
index
990f101
..
cd4603e
100644
(file)
--- a/
lib/Target/Sparc/SparcISelDAGToDAG.cpp
+++ b/
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;
}
}