[PATCH] D128794: [WebAssembly] Don't set musttail for coroutines is tail call is not enabled
Chuanqi Xu via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 29 02:26:23 PDT 2022
ChuanqiXu created this revision.
ChuanqiXu added a reviewer: tlively.
Herald added subscribers: pmatos, asb, ecnelises, 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. This revision tried to address the opinion from https://reviews.llvm.org/D128163 by adding a new method to TTI.
https://reviews.llvm.org/D128794
Files:
llvm/include/llvm/Analysis/TargetTransformInfo.h
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
llvm/lib/Analysis/TargetTransformInfo.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetTransformInfo.h
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
llvm/test/Transforms/Coroutines/coro-split-musttail8.ll
llvm/test/Transforms/Coroutines/coro-split-musttail9.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D128794.440905.patch
Type: text/x-patch
Size: 10103 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220629/87c358c1/attachment.bin>
More information about the llvm-commits
mailing list