[PATCH] D128163: [Coroutines] Don't add musttail call if WebAssembly are enabled

Chuanqi Xu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 20 01:48:35 PDT 2022


ChuanqiXu created this revision.
ChuanqiXu added a reviewer: tlively.
Herald added subscribers: pmatos, sunfish, hiraditya, jgravelle-google, sbc100, dschuff.
Herald added a project: All.
ChuanqiXu requested review of this revision.
Herald added subscribers: llvm-commits, aheejin.
Herald added a project: LLVM.

The C++20 Coroutines couldn't be compiled to WebAssembly due to an optimization named symmetric transfer requires the support for musttail calls but WebAssembly doesn't support it yet. So the revision tried to disable the optimization for WebAssembly to make we could compile standard C++20 codes in that platform.


https://reviews.llvm.org/D128163

Files:
  llvm/lib/Transforms/Coroutines/CoroSplit.cpp
  llvm/test/Transforms/Coroutines/coro-split-musttail10.ll
  llvm/test/Transforms/Coroutines/coro-split-musttail9.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128163.438294.patch
Type: text/x-patch
Size: 5575 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220620/c1a09c99/attachment.bin>


More information about the llvm-commits mailing list