[PATCH] D75924: [Attributor] AANoCapture: Regard a comparison to null as nocapture
Hideto Ueno via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 10 08:39:57 PDT 2020
uenoku created this revision.
uenoku added reviewers: jdoerfert, sstefan1, baziotis.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
uenoku added a comment.
I have missed to check the dereferenceability of the pointer. I'll fix it later.
So now the tests are broken.
This patch treats a pointer comparison to constant null as no capture instruction when null pointer is not defined in `AANoCapture`.
https://reviews.llvm.org/D75924
Files:
llvm/lib/Transforms/IPO/Attributor.cpp
llvm/test/Transforms/Attributor/noalias.ll
llvm/test/Transforms/Attributor/nocapture-1.ll
llvm/test/Transforms/Attributor/nocapture-2.ll
llvm/test/Transforms/Attributor/nonnull.ll
llvm/test/Transforms/Attributor/read_write_returned_arguments_scc.ll
llvm/test/Transforms/Attributor/returned.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75924.249384.patch
Type: text/x-patch
Size: 14442 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200310/b55a5ab8/attachment-0001.bin>
More information about the llvm-commits
mailing list