[PATCH] D109548: Make llvm.launder.invariant.group writeonly
Arthur Eubanks via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 9 15:20:32 PDT 2021
aeubanks created this revision.
aeubanks added a reviewer: Prazek.
Herald added subscribers: ormris, okura, kuter.
aeubanks requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a project: LLVM.
-fstrict-vtable-pointers causes many functions to no longer be
considered writeonly. This is because basic-aa thinks launder may read
from the pointer operand.
>From the LangRef on writeonly:
If a writeonly function reads memory visible to the program, or has
other side-effects, the behavior is undefined. If a function reads from
a writeonly pointer argument, the behavior is undefined.
launder fits this criteria.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D109548
Files:
llvm/include/llvm/IR/Intrinsics.td
llvm/test/Other/invariant.group.ll
llvm/test/Transforms/Attributor/nocapture-1.ll
llvm/test/Transforms/FunctionAttrs/launder.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D109548.371732.patch
Type: text/x-patch
Size: 13806 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210909/e52380ef/attachment.bin>
More information about the llvm-commits
mailing list