mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-19 03:24:09 +00:00
Make removeTriviallyDeadNodes a private interface of DSGraph
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4659 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -772,8 +772,7 @@ static void removeRefsToGlobal(DSNode* N,
|
||||
//
|
||||
bool DSGraph::isNodeDead(DSNode *N) {
|
||||
// Is it a trivially dead shadow node...
|
||||
if (N->getReferrers().empty() &&
|
||||
(N->NodeType == 0 || N->NodeType == DSNode::DEAD))
|
||||
if (N->getReferrers().empty() && (N->NodeType & ~DSNode::DEAD) == 0)
|
||||
return true;
|
||||
|
||||
// Is it a function node or some other trivially unused global?
|
||||
|
Reference in New Issue
Block a user