forked from OSchip/llvm-project
[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:
parent
a225556d4d
commit
d2ac89b64e
|
@ -1380,6 +1380,7 @@ SDValue LoongArchTargetLowering::LowerFormalArguments(
|
|||
default:
|
||||
llvm_unreachable("Unsupported calling convention");
|
||||
case CallingConv::C:
|
||||
case CallingConv::Fast:
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue