summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/DataStructure/NodeImpl.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-04 19:21:51 +0000
committerChris Lattner <sabre@nondot.org>2002-04-04 19:21:51 +0000
commit9ba54b2f31a2825539261328f1929c29bae5b2ee (patch)
tree5219e588648de828c61a8e4c3c7b415f4fbce31c /llvm/lib/Analysis/DataStructure/NodeImpl.cpp
parentd6c8dd14737f0799ea5126db754cac85b2589447 (diff)
downloadbcm5719-llvm-9ba54b2f31a2825539261328f1929c29bae5b2ee.tar.gz
bcm5719-llvm-9ba54b2f31a2825539261328f1929c29bae5b2ee.zip
Call nodes are never equivalent
Shadow nodes are never critical. llvm-svn: 2102
Diffstat (limited to 'llvm/lib/Analysis/DataStructure/NodeImpl.cpp')
-rw-r--r--llvm/lib/Analysis/DataStructure/NodeImpl.cpp7
1 files changed, 4 insertions, 3 deletions
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<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...
}
OpenPOWER on IntegriCloud