[BasicAA] Remove unnecessary known size requirement
authorNikita Popov <nikita.ppv@gmail.com>
Sat, 14 Nov 2020 17:01:14 +0000 (18:01 +0100)
committerNikita Popov <nikita.ppv@gmail.com>
Sat, 28 Nov 2020 09:17:12 +0000 (10:17 +0100)
commit1dea8ed8b7dd2ff5ea89dd6dcaf0b682a81e9815
tree4c80aa0dd31bd19045ff065fa9472a84494b10c7
parent6ee22ca6ceb71661e8dbc296b471ace0614c07e5
[BasicAA] Remove unnecessary known size requirement

The size requirement on V2 was present because it was not clear
whether an unknown size would allow an access before the start of
V2, which could then overlap. This is clarified since D91649: In
this part of BasicAA, all accesses can occur only after the base
pointer, even if they have unknown size.

This makes the positive and negative offset cases symmetric.

Differential Revision: https://reviews.llvm.org/D91482
llvm/lib/Analysis/BasicAliasAnalysis.cpp
llvm/test/Analysis/BasicAA/negoffset.ll