[all-commits] [llvm/llvm-project] 41fdb4: [RISCV] Permit tail call to an externally-defined ...
Liao Chunyu via All-commits
all-commits at lists.llvm.org
Thu Feb 2 17:39:01 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 41fdb4c53f44281e4c7e26c2571395b9fc692cc4
https://github.com/llvm/llvm-project/commit/41fdb4c53f44281e4c7e26c2571395b9fc692cc4
Author: LiaoChunyu <chunyu at iscas.ac.cn>
Date: 2023-02-03 (Fri, 03 Feb 2023)
Changed paths:
M llvm/lib/Target/RISCV/RISCVISelLowering.cpp
M llvm/test/CodeGen/RISCV/tail-calls.ll
Log Message:
-----------
[RISCV] Permit tail call to an externally-defined function with weak linkage
As described in D45395 `This has been modeled after ARM's tail call opt.`
ARM's abi seems to limit weak symbol.
I did not find the limitation for RISCV. (Please correct me if I am wrong)
gcc seems to use the tail-call opt: https://godbolt.org/z/bjWE68n5o
Reviewed By: MaskRay
Differential Revision: https://reviews.llvm.org/D143137
More information about the All-commits
mailing list