[PATCH] D109662: [Attributor] Ensure store uses are correlated with reloads
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 12 13:31:37 PDT 2021
jdoerfert created this revision.
jdoerfert added a reviewer: kuter.
Herald added subscribers: ormris, okura, uenoku, bollu, hiraditya.
Herald added a reviewer: uenoku.
Herald added a reviewer: homerdin.
jdoerfert requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
While we skipped uses in stores if we can find all copies of the value
when the memory is loaded, we did not correlate the use in the store
with the use in the load. So far this lead to less precise results in the
offset calculations which prevented deductions. With the new
EquivalentUseCB callback argument the user of checkForAllUses can be
informed of the correlation and act on it appropriately.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109662
Files:
llvm/include/llvm/Transforms/IPO/Attributor.h
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/value-simplify-pointer-info.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109662.372132.patch
Type: text/x-patch
Size: 6645 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210912/035e05d7/attachment.bin>
More information about the llvm-commits
mailing list