[PATCH] D89089: [Inliner] Handle `mustprogress` functions

Atmn Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 8 18:24:29 PDT 2020


atmnpatel created this revision.
Herald added subscribers: llvm-commits, jdoerfert.
Herald added a project: LLVM.
atmnpatel requested review of this revision.

When inlining `mustprogress` functions, if the caller or the callee has
the attribute, we drop the function attribute. The loops that have the
`llvm.loop.mustprogress` metadata keep their metadata. We do not need to
add new loop metadata to inlined functions because the patch in D86841 <https://reviews.llvm.org/D86841>
already adds the relevant loop metadata in all of the necessary places.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D89089

Files:
  llvm/include/llvm/IR/Attributes.td
  llvm/test/Transforms/Inline/inlined-mustprogress-loop-metadata.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D89089.297099.patch
Type: text/x-patch
Size: 19444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201009/b813d9da/attachment.bin>


More information about the llvm-commits mailing list