Call nodes are never equivalent

Shadow nodes are never critical.

llvm-svn: 2102
This commit is contained in:
Chris Lattner 2002-04-04 19:21:51 +00:00
parent d6c8dd1473
commit 9ba54b2f31
1 changed files with 4 additions and 3 deletions

View File

@ -29,10 +29,10 @@ bool GlobalDSNode::isEquivalentTo(DSNode *Node) const {
}
bool CallDSNode::isEquivalentTo(DSNode *Node) const {
return false;
if (CallDSNode *C = dyn_cast<CallDSNode>(Node))
return /*C->CI == CI &&*/
C->CI->getCalledFunction() == CI->getCalledFunction() &&
C->ArgLinks == ArgLinks;
return C->CI->getCalledFunction() == CI->getCalledFunction() &&
C->ArgLinks == ArgLinks;
return false;
}
@ -45,6 +45,7 @@ bool ArgDSNode::isEquivalentTo(DSNode *Node) const {
// any type.
//
bool ShadowDSNode::isEquivalentTo(DSNode *Node) const {
return getType() == Node->getType();
return !isCriticalNode(); // Must not be a critical node...
}