[llvm] [RISCV][FPE] Remove unused variable (PR #149054)

via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 16 03:01:14 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-risc-v

Author: Serge Pavlov (spavloff)

<details>
<summary>Changes</summary>

It was added by me in 905bb5bddb690765cab5416d55ab017d7c832eb3, which committed PR https://github.com/llvm/llvm-project/pull/148569.

---
Full diff: https://github.com/llvm/llvm-project/pull/149054.diff


1 Files Affected:

- (modified) llvm/lib/Target/RISCV/RISCVISelLowering.cpp (-1) 


``````````diff
diff --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index de830666d89b8..0cee5c87e999d 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -14021,7 +14021,6 @@ SDValue RISCVTargetLowering::lowerGET_FPMODE(SDValue Op,
   SDLoc DL(Op);
   SDValue Chain = Op->getOperand(0);
   SDValue SysRegNo = DAG.getTargetConstant(RISCVSysReg::fcsr, DL, XLenVT);
-  SDValue ModeMask = DAG.getConstant(ModeMaskValue, DL, XLenVT);
   SDVTList VTs = DAG.getVTList(XLenVT, MVT::Other);
   SDValue Result = DAG.getNode(RISCVISD::READ_CSR, DL, VTs, Chain, SysRegNo);
   Chain = Result.getValue(1);

``````````

</details>


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


More information about the llvm-commits mailing list