[PATCH] D74691: [Attributor] Detect possibly unbounded cycles in functions

omar ahmed via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 9 13:30:50 PDT 2020


omarahmed updated this revision to Diff 249196.
omarahmed marked an inline comment as done.
omarahmed added a comment.

Patch updates :

1. Add mayContainIrreducibleControl() function to the MustExecute.h so it could be used in mayContainUnboundedCycle() function in Attributtor.cpp.
2. Fix mayContainIrreducibleControl() function as the return value was reversed , it was :
  - Return true if Reducible control.
  - Return false if Irreducible control.
3. Minor fixes in docs.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74691/new/

https://reviews.llvm.org/D74691

Files:
  llvm/include/llvm/Analysis/MustExecute.h
  llvm/lib/Analysis/MustExecute.cpp
  llvm/lib/Transforms/IPO/Attributor.cpp
  llvm/test/Transforms/Attributor/read_write_returned_arguments_scc.ll
  llvm/test/Transforms/Attributor/willreturn.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74691.249196.patch
Type: text/x-patch
Size: 17717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200309/c756098c/attachment-0001.bin>


More information about the llvm-commits mailing list