[PATCH] D115222: [Coroutines] Remove unused coroutine builtin/intrinsics llvm.coro.param (NFC-ish)

John McCall via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 6 23:33:07 PST 2021


rjmccall added a reviewer: GorNishanov.
rjmccall added a comment.

I imagine Gor hoped for this optimization to be implemented someday, assuming it's still allowed by the language specification.  Maybe you would be interested in pursuing that?  It sounds like it's really just (1) emitting the intrinsic in the frontend and then (2) checking if the copied parameter variable is actually used after reaching a suspend point, other than in ways that wouldn't happen if the intrinsic returned false.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D115222



More information about the llvm-commits mailing list