[llvm] [RISCV] Don't use x7 as input argument for fastcc when Zicfilp enabled. (PR #93321)

Yeting Kuo via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 23:59:18 PDT 2024


================
@@ -18415,10 +18416,18 @@ static ArrayRef<MCPhysReg> getFastCCArgGPRs(const RISCVABI::ABI ABI) {
                                           RISCV::X13, RISCV::X14, RISCV::X15,
                                           RISCV::X7};
 
+  // Zicfilp needs needs x7(t2) as the landing pad label register.
----------------
yetingk wrote:

I will do some test in sifive internal.

https://github.com/llvm/llvm-project/pull/93321


More information about the llvm-commits mailing list