[PATCH] D94125: [Attributor] Derive `willreturn` based on `mustprogress`

Johannes Doerfert via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 5 15:09:59 PST 2021


jdoerfert created this revision.
jdoerfert added reviewers: atmnpatel, fhahn, nikic, efriedma.
Herald added subscribers: okura, kuter, uenoku, bollu, hiraditya.
Herald added a reviewer: uenoku.
Herald added a reviewer: homerdin.
jdoerfert requested review of this revision.
Herald added a reviewer: sstefan1.
Herald added a reviewer: baziotis.
Herald added a subscriber: bbn.
Herald added a project: LLVM.

Since D86233 <https://reviews.llvm.org/D86233> we have `mustprogress` which, in combination with
`readonly`, implies `willreturn`. The idea is that every side-effect
has to be modeled as a "write". Consequently, `readonly` means there
is no side-effect, and `mustprogress` guarantees that we cannot "loop"
forever without side-effect.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D94125

Files:
  llvm/lib/Transforms/IPO/AttributorAttributes.cpp
  llvm/test/Transforms/Attributor/internal-noalias.ll
  llvm/test/Transforms/Attributor/willreturn.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D94125.314730.patch
Type: text/x-patch
Size: 24433 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210105/82eb6873/attachment.bin>


More information about the llvm-commits mailing list