diff options
author | Chris Lattner <sabre@nondot.org> | 2002-04-04 19:21:51 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-04-04 19:21:51 +0000 |
commit | 0009dac2bf4884769609ab066b72e8442c396822 (patch) | |
tree | 5774c0f2e543d3cd906ef18a5d3b82aad6f3437d /lib/Analysis/DataStructure/NodeImpl.cpp | |
parent | 1f1170c94a5a36e1767a10427c67429c68550243 (diff) |
Call nodes are never equivalent
Shadow nodes are never critical.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2102 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/DataStructure/NodeImpl.cpp')
-rw-r--r-- | lib/Analysis/DataStructure/NodeImpl.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Analysis/DataStructure/NodeImpl.cpp b/lib/Analysis/DataStructure/NodeImpl.cpp index 27209224b4..c773eb16fa 100644 --- a/lib/Analysis/DataStructure/NodeImpl.cpp +++ b/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<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... } |