[llvm] 81786b9 - [RISCV][NFC] Remove unused variable

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Thu May 8 10:09:51 PDT 2025


Author: Min-Yih Hsu
Date: 2025-05-08T10:09:04-07:00
New Revision: 81786b9185fc048a3ea83e57f825ec0284e988a8

URL: https://github.com/llvm/llvm-project/commit/81786b9185fc048a3ea83e57f825ec0284e988a8
DIFF: https://github.com/llvm/llvm-project/commit/81786b9185fc048a3ea83e57f825ec0284e988a8.diff

LOG: [RISCV][NFC] Remove unused variable

Remove unused variable in RISCVTargetLowering

Added: 
    

Modified: 
    llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
index fd1966335cd1e..e5104e9919d51 100644
--- a/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
+++ b/llvm/lib/Target/RISCV/RISCVISelLowering.cpp
@@ -9618,7 +9618,6 @@ SDValue RISCVTargetLowering::lowerINSERT_VECTOR_ELT(SDValue Op,
 
   // If we know the index we're going to insert at, we can shrink Vec so that
   // we're performing the scalar inserts and slideup on a smaller LMUL.
-  MVT OrigContainerVT = ContainerVT;
   SDValue OrigVec = Vec;
   std::optional<unsigned> AlignedIdx;
   if (auto *IdxC = dyn_cast<ConstantSDNode>(Idx)) {


        


More information about the llvm-commits mailing list