[LoongArch] Support fastcc and treat it as ccc

As explained in 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.

Differential Revision: https://reviews.llvm.org/D134443
This commit is contained in:
WANG Xuerui 2022-09-26 09:59:52 +08:00 committed by Weining Lu
parent a225556d4d
commit d2ac89b64e
1 changed files with 1 additions and 0 deletions

View File

@ -1380,6 +1380,7 @@ SDValue LoongArchTargetLowering::LowerFormalArguments(
default:
llvm_unreachable("Unsupported calling convention");
case CallingConv::C:
case CallingConv::Fast:
break;
}