[all-commits] [llvm/llvm-project] 3b52c0: Make FindAvailableLoadedValue TBAA aware
RoboTux via All-commits
all-commits at lists.llvm.org
Wed Mar 24 10:20:39 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3b52c04e82fada6483337dfd6a033f336fbc73ec
https://github.com/llvm/llvm-project/commit/3b52c04e82fada6483337dfd6a033f336fbc73ec
Author: Thomas Preud'homme <thomasp at graphcore.ai>
Date: 2021-03-24 (Wed, 24 Mar 2021)
Changed paths:
M llvm/include/llvm/Analysis/Loads.h
M llvm/lib/Analysis/Loads.cpp
M llvm/lib/Transforms/Scalar/JumpThreading.cpp
M llvm/test/Transforms/InstCombine/load-no-aliasing.ll
Log Message:
-----------
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
More information about the All-commits
mailing list