llvm.org GIT mirror llvm / b581148
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 Chris Lattner 17 years ago
1 changed file(s) with 0 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
144144 if (V1Size != ~0U && V2Size != ~0U)
145145 if (const GetElementPtrInst *GEP = dyn_cast(V1)) {
146146 AliasResult R = alias(GEP->getOperand(0), V1Size, V2, V2Size);
147 if (R == NoAlias) return NoAlias;
148147 if (R == MustAlias) {
149148 // If there is at least one non-zero constant index, we know they cannot
150149 // alias.