[PATCH] D134443: [LoongArch] Support fastcc and treat it as ccc
WÁNG Xuěruì via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 22 08:39:54 PDT 2022
xen0n created this revision.
xen0n added reviewers: SixWeining, wangleiat, xry111, gonglingqin.
Herald added subscribers: luismarques, s.egerton, PkmX, simoncook, hiraditya, arichardson.
Herald added a project: All.
xen0n requested review of this revision.
Herald added subscribers: llvm-commits, pcwang-thead.
Herald added a project: LLVM.
As explained in D68559 <https://reviews.llvm.org/D68559> the `fastcc` calling convention may be requested
under certain conditions, hence the need for supporting it. But unlike
RISCV we actually treat it exactly like ccc, without actually inventing
any performance hack right here. And CSKY does the same thing.
This is going to fix a few more test cases with native LoongArch builds.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134443
Files:
llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
Index: llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
===================================================================
--- llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
+++ llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp
@@ -1407,6 +1407,7 @@
default:
llvm_unreachable("Unsupported calling convention");
case CallingConv::C:
+ case CallingConv::Fast:
break;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134443.462183.patch
Type: text/x-patch
Size: 400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220922/e831b7b3/attachment-0001.bin>
More information about the llvm-commits
mailing list