[PATCH] D76792: [InlineFunction] Update metadata on loads that are return values
Anna Thomas via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 25 11:53:43 PDT 2020
anna created this revision.
Herald added subscribers: llvm-commits, dantrushin, hiraditya.
Herald added a project: LLVM.
anna added reviewers: reames, jdoerfert, apilipenko.
anna added a parent revision: D76140: [InlineFunction] update attributes during inlining.
This patch builds upon D76140 <https://reviews.llvm.org/D76140> by updating metadata on pointer typed loads in inlined functions, when the load is the return value, and the callsite contains return attributes which can be updated as metadata on the load.
Added test cases show this for nonnull, dereferenceable, dereferenceable_or_null
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D76792
Files:
llvm/lib/Transforms/Utils/InlineFunction.cpp
llvm/test/Transforms/Inline/ret_load_metadata.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D76792.252635.patch
Type: text/x-patch
Size: 7701 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200325/a4d64ca3/attachment.bin>
More information about the llvm-commits
mailing list