The code has a bug, but some tests regress.
I'll discuss this further on the mailing list.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@317815
91177308-0d34-0410-b5e6-
96231b3b80d8
// greater, we know they do not overlap.
if (GEP1BaseOffset != 0 && DecompGEP1.VarIndices.empty()) {
if (GEP1BaseOffset >= 0) {
- if (V1Size != MemoryLocation::UnknownSize &&
- V2Size != MemoryLocation::UnknownSize) {
+ if (V2Size != MemoryLocation::UnknownSize) {
if ((uint64_t)GEP1BaseOffset < V2Size)
return PartialAlias;
return NoAlias;