[PATCH] D99206: Make FindAvailableLoadedValue TBAA aware
Thomas Preud'homme via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 23 12:16:29 PDT 2021
thopre created this revision.
thopre added reviewers: nikic, fhahn, reames, jdoerfert.
Herald added subscribers: jfb, kosarev, hiraditya.
thopre requested review of this revision.
Herald added a project: LLVM.
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.
Depends on D99204 <https://reviews.llvm.org/D99204>
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99206
Files:
llvm/include/llvm/Analysis/Loads.h
llvm/lib/Analysis/Loads.cpp
llvm/lib/Transforms/Scalar/JumpThreading.cpp
llvm/test/Transforms/LoopRotate/load-hoist.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99206.332753.patch
Type: text/x-patch
Size: 8213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210323/1df6840f/attachment.bin>
More information about the llvm-commits
mailing list