[Loads] Handle simple cases with same base pointer with constant offsets in FindAvail...
authorHiroshi Yamauchi <yamauchi@google.com>
Tue, 10 Dec 2019 22:41:30 +0000 (14:41 -0800)
committerHiroshi Yamauchi <yamauchi@google.com>
Wed, 29 Jan 2020 21:05:46 +0000 (13:05 -0800)
commit24962ced814123195be1a8cb41b615f255da824f
treeeac36d178a3c764d1cc587da0ea2d57e4859fe04
parent00c2249910a17eee9c5a23bc82f2d2f5e1b6c867
[Loads] Handle simple cases with same base pointer with constant offsets in FindAvailableLoadedValue when AA is null.

Summary:
This will help with devirtualization (store forwarding with vtable pointers in
the presence of other stores into members in the constructor.) During inlining,
we don't have AA.

Reviewers: davidxl

Subscribers: mgorny, Prazek, hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D71307
llvm/lib/Analysis/Loads.cpp
llvm/unittests/Analysis/CMakeLists.txt
llvm/unittests/Analysis/LoadsTest.cpp [new file with mode: 0644]