[PATCH] D65860: [Attributor] Add LoopInfo to InformationCache and improve willreturn deduction

Hideto Ueno via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 7 04:43:06 PDT 2019


uenoku created this revision.
uenoku added reviewers: jdoerfert, sstefan1.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

In this patch, LoopInfo is added to InformationCache and used for `willreturn` function attribute deduction.

We can have `willreturn` if we assume all the loops in the function are assumed as `never-endless` (concrete implementation is in D65296 <https://reviews.llvm.org/D65296>. In this patch, only interfaces are provided). If there is an irreducible loop in function, we reach pessimistic fixpoint for now.


https://reviews.llvm.org/D65860

Files:
  llvm/include/llvm/Transforms/IPO/Attributor.h
  llvm/lib/Transforms/IPO/Attributor.cpp
  llvm/test/Transforms/FunctionAttrs/read_write_returned_arguments_scc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D65860.213846.patch
Type: text/x-patch
Size: 9635 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190807/00bed82f/attachment.bin>


More information about the llvm-commits mailing list