diff options
author | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2022-06-29 12:48:48 +0800 |
---|---|---|
committer | Chuanqi Xu <yedeng.yd@linux.alibaba.com> | 2022-06-30 11:15:40 +0800 |
commit | 0b5ead659023dedd6c450657df9f242a2819871a (patch) | |
tree | 3273057006c19d569f86787e1323ce789eb5356c /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | fa8656d28d795a45dd76f5ca6030c5eef4c7003a (diff) | |
download | llvm-0b5ead659023dedd6c450657df9f242a2819871a.zip llvm-0b5ead659023dedd6c450657df9f242a2819871a.tar.gz llvm-0b5ead659023dedd6c450657df9f242a2819871a.tar.bz2 |
[WebAssembly] Don't set musttail for coroutines when tail-call is not
enabled
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.
This patch tries to fix the problem by adding a supportsTailCalls
method to TargetTransformImpl to skip the symmetric transfer when
tail-call feature is not supported.
Reviewed By: tlively
Differential Revision: https://reviews.llvm.org/D128794
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions