[PATCH] D119571: [funcattrs] use DominatorTree to improve noreturn

Nick Desaulniers via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 11 13:13:12 PST 2022


nickdesaulniers added inline comments.


================
Comment at: llvm/lib/Transforms/IPO/FunctionAttrs.cpp:1626
-    // The function can return if any basic blocks can return.
-    // FIXME: this doesn't handle recursion or unreachable blocks.
-    if (none_of(*F, basicBlockCanReturn)) {
----------------
Probably want to keep the fixme about recursion.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D119571



More information about the llvm-commits mailing list