[llvm-commits] CVS: llvm/lib/Analysis/AliasAnalysis.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Feb 9 13:28:01 PST 2003
Changes in directory llvm/lib/Analysis:
AliasAnalysis.cpp updated: 1.8 -> 1.9
---
Log message:
- Fix BasicAA to correctly detect the non-aliasness of A[1] & A[2]
---
Diffs of the changes:
Index: llvm/lib/Analysis/AliasAnalysis.cpp
diff -u llvm/lib/Analysis/AliasAnalysis.cpp:1.8 llvm/lib/Analysis/AliasAnalysis.cpp:1.9
--- llvm/lib/Analysis/AliasAnalysis.cpp:1.8 Fri Feb 7 14:39:46 2003
+++ llvm/lib/Analysis/AliasAnalysis.cpp Sun Feb 9 13:27:21 2003
@@ -165,7 +165,7 @@
if (const Instruction *I = dyn_cast<CastInst>(V1))
return alias(I->getOperand(0), V2);
if (const Instruction *I = dyn_cast<CastInst>(V2))
- return alias(I->getOperand(0), V1);
+ return alias(V1, I->getOperand(0));
// If we have two gep instructions with identical indices, return an alias
// result equal to the alias result of the original pointer...
@@ -197,7 +197,7 @@
// doesn't tell us anything.
//
if (AllConstant &&
- alias(GEP1->getOperand(0), GEP2->getOperand(1)) != MayAlias)
+ alias(GEP1->getOperand(0), GEP2->getOperand(0)) != MayAlias)
return NoAlias;
}
More information about the llvm-commits
mailing list