diff options
author | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-01-18 20:41:34 +0000 |
---|---|---|
committer | Krzysztof Parzyszek <kparzysz@codeaurora.org> | 2016-01-18 20:41:34 +0000 |
commit | 69e670d5f996e2d1c0e4300aec4b41cc2ec24dcb (patch) | |
tree | b26909b722268b09e9394196f1bf65cc56ca69af /llvm/lib/Target/Hexagon/RDFDeadCode.cpp | |
parent | eb85b04c7eccad93706d7e7e319a34597f521ac6 (diff) | |
download | llvm-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.cpp | 4 |
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. |