[PATCH] D141673: [PowerPC] refactor eligible check for tail call optimization
Ting Wang via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 13 03:07:12 PST 2023
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.
The check logic for TCO is scattered in two functions: `IsEligibleForTailCallOptimization_64SVR4()` `IsEligibleForTailCallOptimization()`, and serves instruction selection phase only at this moment.
There is one scenario (D131953 <https://reviews.llvm.org/D131953>) during transformation, we would like to determine if tailcall can be guaranteed or not. Existing logic cannot be directly reused due to dependency on DAG and SDValue etc.
This patch aims to refactor existing logic to export an API for TCO eligible query before instruction selection phase.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D141673
Files:
llvm/lib/Target/PowerPC/PPCISelLowering.cpp
llvm/lib/Target/PowerPC/PPCISelLowering.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D141673.488930.patch
Type: text/x-patch
Size: 15531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230113/ce3e718e/attachment.bin>
More information about the llvm-commits
mailing list