[llvm] [RISCV] Implement RISCVTargetLowering::getRoundingControlRegisters (PR #139864)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat May 17 09:50:16 PDT 2025
================
@@ -24356,3 +24356,8 @@ RISCVTargetLowering::emitDynamicProbedAlloc(MachineInstr &MI,
MF.getInfo<RISCVMachineFunctionInfo>()->setDynamicAllocation();
return ExitMBB->begin()->getParent();
}
+
+ArrayRef<MCPhysReg> RISCVTargetLowering::getRoundingControlRegisters() const {
----------------
topperc wrote:
I think we should check `Subtarget->hasStdExtFOrZfinx()` before returning `{RISCV::FRM, RISCV::FFLAGS}`. If that is false we should return an emtpy set.
https://github.com/llvm/llvm-project/pull/139864
More information about the llvm-commits
mailing list