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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Fri May 24 10:13:34 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.
----------------
topperc wrote:

How much do we lose if we just never use X7 for fastcc?

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


More information about the llvm-commits mailing list