aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Utils.cpp
diff options
context:
space:
mode:
authorThomas Preud'homme <thomasp@graphcore.ai>2021-03-22 20:28:41 +0000
committerThomas Preud'homme <thomasp@graphcore.ai>2021-03-24 17:20:26 +0000
commit3b52c04e82fada6483337dfd6a033f336fbc73ec (patch)
tree42587cd941afb4d04be3cabe40facac4dc0ca955 /llvm/lib/Transforms/Utils/Utils.cpp
parent7654bb6303d290b19cad29137be810e69a0bf917 (diff)
downloadllvm-3b52c04e82fada6483337dfd6a033f336fbc73ec.zip
llvm-3b52c04e82fada6483337dfd6a033f336fbc73ec.tar.gz
llvm-3b52c04e82fada6483337dfd6a033f336fbc73ec.tar.bz2
Make FindAvailableLoadedValue TBAA aware
FindAvailableLoadedValue() relies on FindAvailablePtrLoadStore() to run the alias analysis when searching for an equivalent value. However, FindAvailablePtrLoadStore() calls the alias analysis framework with a memory location for the load constructed from an address and a size, which thus lacks TBAA metadata info. This commit modifies FindAvailablePtrLoadStore() to accept an optional memory location as parameter to allow FindAvailableLoadedValue() to create it based on the load instruction, which would then have TBAA metadata info attached. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D99206
Diffstat (limited to 'llvm/lib/Transforms/Utils/Utils.cpp')
0 files changed, 0 insertions, 0 deletions