mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-30 04:35:00 +00:00
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
This commit is contained in:
parent
1f1170c94a
commit
0009dac2bf
@ -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...
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user