[PATCH] D140369: [PowerPC] update PPCTTIImpl::supportsTailCallFor() check conditions
Ting Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 19 20:44:55 PST 2022
tingwang created this revision.
tingwang added reviewers: shchenz, nemanjai, PowerPC.
tingwang added a project: LLVM.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: All.
tingwang requested review of this revision.
Herald added a subscriber: llvm-commits.
To address the reported issue https://github.com/llvm/llvm-project/issues/59315, this patch updates `PPCTTIImpl::supportsTailCallFor()` in following aspects:
(1) Add check logic for non-64BitELFABI sub-targets. This part of logic is missing from previous fix D131953 <https://reviews.llvm.org/D131953>, and caused the issue.
(2) Disable tailcall generation when longcall feature is turned on.
(3) Reuse `mayBeEmittedAsTailCall()` from TLI to check for 64BitELFABI sub-targets.
(4) Add asserts requirement for the test case.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D140369
Files:
llvm/lib/Target/PowerPC/PPCISelLowering.h
llvm/lib/Target/PowerPC/PPCTargetTransformInfo.cpp
llvm/test/Transforms/Coroutines/coro-split-musttail-ppc64le.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140369.484160.patch
Type: text/x-patch
Size: 4937 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221220/10fb809b/attachment.bin>
More information about the llvm-commits
mailing list