mirror of
https://github.com/RPCSX/llvm.git
synced 2025-02-17 03:28:17 +00:00
Fix bug: BasicAA/2003-04-22-GEPProblem.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5858 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
63a6e77485
commit
b581148bd9
@ -145,7 +145,6 @@ BasicAliasAnalysis::alias(const Value *V1, unsigned V1Size,
|
||||
if (V1Size != ~0U && V2Size != ~0U)
|
||||
if (const GetElementPtrInst *GEP = dyn_cast<GetElementPtrInst>(V1)) {
|
||||
AliasResult R = alias(GEP->getOperand(0), V1Size, V2, V2Size);
|
||||
if (R == NoAlias) return NoAlias;
|
||||
if (R == MustAlias) {
|
||||
// If there is at least one non-zero constant index, we know they cannot
|
||||
// alias.
|
||||
|
Loading…
x
Reference in New Issue
Block a user