[PATCH] D94684: [InferAttrs] Mark some library functions as willreturn.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 14 05:59:01 PST 2021


fhahn created this revision.
fhahn added reviewers: jdoerfert, nikic, efriedma, xbolva00.
Herald added subscribers: asbirlea, hiraditya.
fhahn requested review of this revision.
Herald added a project: LLVM.

This patch marks some library functions as willreturn. On the first pass, I
excluded most functions that interact with streams/the filesystem.

Along with willreturn, it also adds nounwind to a set of math functions.
There probably are a few additional attributes we can add for those, but
that should be done separately.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94684

Files:
  llvm/lib/Transforms/Utils/BuildLibCalls.cpp
  llvm/test/Transforms/InferFunctionAttrs/annotate.ll
  llvm/test/Transforms/LICM/strlen.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94684.316638.patch
Type: text/x-patch
Size: 47053 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210114/2dc458d6/attachment.bin>


More information about the llvm-commits mailing list