Skip to content

Commit 5861cf7

Browse files
committed
[RISCV] Remove FCSR from RISCVRegisterInfo.
We only used this to mark it as a reserved register. But that's not important if we don't do anything else with it. I think if we were ever to do anything with it, we would need to model it as a super register of FRM and FFLAGS. But it might be easier to reference both FRM and FFLAGS in implicit defs/uses for anything we were to do with "fcsr". Reviewed By: sepavloff Differential Revision: https://reviews.llvm.org/D115455
1 parent 57b5f4b commit 5861cf7

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

llvm/lib/Target/RISCV/RISCVRegisterInfo.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ BitVector RISCVRegisterInfo::getReservedRegs(const MachineFunction &MF) const {
105105
// Floating point environment registers.
106106
markSuperRegs(Reserved, RISCV::FRM);
107107
markSuperRegs(Reserved, RISCV::FFLAGS);
108-
markSuperRegs(Reserved, RISCV::FCSR);
109108

110109
assert(checkAllSuperRegsMarked(Reserved));
111110
return Reserved;

llvm/lib/Target/RISCV/RISCVRegisterInfo.td

-1
Original file line numberDiff line numberDiff line change
@@ -577,7 +577,6 @@ foreach m = LMULList.m in {
577577
// Special registers
578578
def FFLAGS : RISCVReg<0, "fflags">;
579579
def FRM : RISCVReg<0, "frm">;
580-
def FCSR : RISCVReg<0, "fcsr">;
581580

582581
// Any type register. Used for .insn directives when we don't know what the
583582
// register types could be.

0 commit comments

Comments
 (0)