[PATCH] D94834: [Coroutine] Do not CoroElide if there are musttail calls

Xun Li via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 15 17:48:47 PST 2021


lxfind added inline comments.


================
Comment at: llvm/lib/Transforms/Coroutines/CoroElide.cpp:259
+  for (Instruction &I : instructions(F))
+    if (auto *Call = dyn_cast<CallInst>(&I))
+      if (Call->isMustTailCall())
----------------
bruno wrote:
> How about walking the BBs and check by using `getTerminatingMustTailCall()`?
That's nice. Thanks!


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D94834



More information about the llvm-commits mailing list