From 9ba54b2f31a2825539261328f1929c29bae5b2ee Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 4 Apr 2002 19:21:51 +0000 Subject: Call nodes are never equivalent Shadow nodes are never critical. llvm-svn: 2102 --- llvm/lib/Analysis/DataStructure/NodeImpl.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'llvm/lib/Analysis/DataStructure/NodeImpl.cpp') diff --git a/llvm/lib/Analysis/DataStructure/NodeImpl.cpp b/llvm/lib/Analysis/DataStructure/NodeImpl.cpp index 27209224b4d..c773eb16fa2 100644 --- a/llvm/lib/Analysis/DataStructure/NodeImpl.cpp +++ b/llvm/lib/Analysis/DataStructure/NodeImpl.cpp @@ -29,10 +29,10 @@ bool GlobalDSNode::isEquivalentTo(DSNode *Node) const { } bool CallDSNode::isEquivalentTo(DSNode *Node) const { + return false; if (CallDSNode *C = dyn_cast(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... } -- cgit v1.2.3