aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/Hexagon/RDFDeadCode.cpp
diff options
context:
space:
mode:
authorKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-01-18 20:41:34 +0000
committerKrzysztof Parzyszek <kparzysz@codeaurora.org>2016-01-18 20:41:34 +0000
commit69e670d5f996e2d1c0e4300aec4b41cc2ec24dcb (patch)
treeb26909b722268b09e9394196f1bf65cc56ca69af /llvm/lib/Target/Hexagon/RDFDeadCode.cpp
parenteb85b04c7eccad93706d7e7e319a34597f521ac6 (diff)
downloadllvm-69e670d5f996e2d1c0e4300aec4b41cc2ec24dcb.zip
llvm-69e670d5f996e2d1c0e4300aec4b41cc2ec24dcb.tar.gz
llvm-69e670d5f996e2d1c0e4300aec4b41cc2ec24dcb.tar.bz2
[RDF] Allow unlinking ref nodes from data-flow chains only
llvm-svn: 258073
Diffstat (limited to 'llvm/lib/Target/Hexagon/RDFDeadCode.cpp')
-rw-r--r--llvm/lib/Target/Hexagon/RDFDeadCode.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Hexagon/RDFDeadCode.cpp b/llvm/lib/Target/Hexagon/RDFDeadCode.cpp
index 9566857..a749324 100644
--- a/llvm/lib/Target/Hexagon/RDFDeadCode.cpp
+++ b/llvm/lib/Target/Hexagon/RDFDeadCode.cpp
@@ -183,9 +183,9 @@ bool DeadCodeElimination::erase(const SetVector<NodeId> &Nodes) {
if (trace())
dbgs() << " " << PrintNode<RefNode*>(RA, DFG) << '\n';
if (DFG.IsUse(RA))
- DFG.unlinkUse(RA);
+ DFG.unlinkUse(RA, true);
else if (DFG.IsDef(RA))
- DFG.unlinkDef(RA);
+ DFG.unlinkDef(RA, true);
}
// Now, remove all dead instruction nodes.