[PATCH] D66157: [BasicAA] Use dereferenceability to reason about aliasing
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 12:11:35 PDT 2019
jdoerfert created this revision.
jdoerfert added reviewers: asbirlea, chandlerc, hfinkel, sanjoy.
Herald added subscribers: bollu, hiraditya.
Herald added a project: LLVM.
We already use the fact that an object with known size X does not alias
another objection of size Y > X before. With this commit, we use
dereferenceability information to determine a lower bound for Y and not
only rely on the user provided query size.
The result for @global_and_deref_arg_2() and @local_and_deref_ret_2()
in test/Analysis/BasicAA/dereferenceable.ll improved with this patch.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D66157
Files:
llvm/lib/Analysis/BasicAliasAnalysis.cpp
llvm/test/Analysis/BasicAA/dereferenceable.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D66157.214898.patch
Type: text/x-patch
Size: 5188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190813/2dc00866/attachment.bin>
More information about the llvm-commits
mailing list