forked from OSchip/llvm-project
If an object is not in the scalar map then it must be a global from another
graph. llvm-svn: 13173
This commit is contained in:
parent
e20c334e65
commit
f374b3f304
|
@ -111,10 +111,12 @@ AliasAnalysis::AliasResult DSAA::alias(const Value *V1, unsigned V1Size,
|
|||
|
||||
const DSGraph::ScalarMapTy &GSM = G.getScalarMap();
|
||||
DSGraph::ScalarMapTy::const_iterator I = GSM.find((Value*)V1);
|
||||
if (I != GSM.end()) {
|
||||
if (I == GSM.end()) return NoAlias;
|
||||
|
||||
assert(I->second.getNode() && "Scalar map points to null node?");
|
||||
DSGraph::ScalarMapTy::const_iterator J = GSM.find((Value*)V2);
|
||||
if (J != GSM.end()) {
|
||||
if (J == GSM.end()) return NoAlias;
|
||||
|
||||
assert(J->second.getNode() && "Scalar map points to null node?");
|
||||
|
||||
DSNode *N1 = I->second.getNode(), *N2 = J->second.getNode();
|
||||
|
@ -150,8 +152,6 @@ AliasAnalysis::AliasResult DSAA::alias(const Value *V1, unsigned V1Size,
|
|||
//if (O1+V1Size <= O2) return NoAlias;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: we could improve on this by checking the globals graph for aliased
|
||||
// global queries...
|
||||
|
|
Loading…
Reference in New Issue