Fix bug: BasicAA/2003-04-22-GEPProblem.ll
authorChris Lattner <sabre@nondot.org>
Tue, 22 Apr 2003 22:00:27 +0000 (22:00 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 22 Apr 2003 22:00:27 +0000 (22:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5858 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/BasicAliasAnalysis.cpp

index 0c6656fd2f97c5e82d1da01bc8bc0108d5ba4e42..f99ab800b2392c527050f72ad7f7be322506ec31 100644 (file)
@@ -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.