[test][AliasAnalysis] Add some baseline tests in preparation for getModRefInfoMask().
authorPatrick Walton <pcwalton@fb.com>
Fri, 28 Oct 2022 19:42:01 +0000 (12:42 -0700)
committerPatrick Walton <pcwalton@fb.com>
Sat, 29 Oct 2022 22:08:54 +0000 (15:08 -0700)
commit81767f2d180d4f7d0cdbc6446a67ceccf913b116
tree5e87871fa0a6f485c75e0d079801e8b5a137d88e
parentf3d49dbcb13ae60488467370a9e1621bb0e9f0e0
[test][AliasAnalysis] Add some baseline tests in preparation for getModRefInfoMask().

This commit adds some tests in preparation for D136659, which allows alias
analysis to treat locally-invariant memory pointed to by readonly noalias
pointers the same as globally-invariant memory in some cases. The existing
behavior for these tests is marked as expected and will be changed when that
diff lands.

Differential Revision: https://reviews.llvm.org/D136993
llvm/test/Analysis/BasicAA/constant-memory.ll
llvm/test/Transforms/InstCombine/memcpy-from-global.ll
llvm/test/Transforms/InstCombine/store.ll