Call nodes are never equivalent
authorChris Lattner <sabre@nondot.org>
Thu, 4 Apr 2002 19:21:51 +0000 (19:21 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 4 Apr 2002 19:21:51 +0000 (19:21 +0000)
Shadow nodes are never critical.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2102 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/DataStructure/NodeImpl.cpp

index 27209224b4df9ac10c990e1de6c7eb4fd808a2fc..c773eb16fa2461a5f468518c3de83ac3b5a75921 100644 (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...
 }