[llvm] [RISCV] Inserting indirect jumps with X7 for Zicfilp (PR #170683)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 4 11:18:18 PST 2025


================
@@ -1372,8 +1372,11 @@ void RISCVInstrInfo::insertIndirectBranch(MachineBasicBlock &MBB,
                           .addMBB(&DestBB, RISCVII::MO_CALL);
 
   RS->enterBasicBlockEnd(MBB);
+  const TargetRegisterClass *RC = &RISCV::GPRRegClass;
+  if (STI.hasStdExtZicfilp())
----------------
topperc wrote:

Ok

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


More information about the llvm-commits mailing list