mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +00:00
Rename variable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -209,17 +209,17 @@ bool Steens::run(Module &M) {
|
|||||||
AliasAnalysis::Result Steens::alias(const Value *V1, const Value *V2) {
|
AliasAnalysis::Result Steens::alias(const Value *V1, const Value *V2) {
|
||||||
assert(ResultGraph && "Result graph has not been computed yet!");
|
assert(ResultGraph && "Result graph has not been computed yet!");
|
||||||
|
|
||||||
hash_map<Value*, DSNodeHandle> &GVM = ResultGraph->getScalarMap();
|
hash_map<Value*, DSNodeHandle> &GSM = ResultGraph->getScalarMap();
|
||||||
|
|
||||||
hash_map<Value*, DSNodeHandle>::iterator I = GVM.find(const_cast<Value*>(V1));
|
hash_map<Value*, DSNodeHandle>::iterator I = GSM.find(const_cast<Value*>(V1));
|
||||||
if (I != GVM.end() && I->second.getNode()) {
|
if (I != GSM.end() && I->second.getNode()) {
|
||||||
DSNodeHandle &V1H = I->second;
|
DSNodeHandle &V1H = I->second;
|
||||||
hash_map<Value*, DSNodeHandle>::iterator J=GVM.find(const_cast<Value*>(V2));
|
hash_map<Value*, DSNodeHandle>::iterator J=GSM.find(const_cast<Value*>(V2));
|
||||||
if (J != GVM.end() && J->second.getNode()) {
|
if (J != GSM.end() && J->second.getNode()) {
|
||||||
DSNodeHandle &V2H = J->second;
|
DSNodeHandle &V2H = J->second;
|
||||||
// If the two pointers point to different data structure graph nodes, they
|
// If the two pointers point to different data structure graph nodes, they
|
||||||
// cannot alias!
|
// cannot alias!
|
||||||
if (V1H.getNode() != V2H.getNode()) {
|
if (V1H.getNode() != V2H.getNode()) { // FIXME: Handle incompleteness!
|
||||||
++NumNoAlias;
|
++NumNoAlias;
|
||||||
return NoAlias;
|
return NoAlias;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user