From 2dff96d37a8419dab7a6ec3e1f8de917c7adb4ea Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Thu, 27 Jun 2024 17:31:55 -0700 Subject: [RISCV] Remove unneeded code from RISCVPostRAExpandPseudo::expandMovImm. NFC We accidentally left a call to generateInstSeq when we rewrote the code to use the X86InstrInfo::movImm. --- llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp b/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp index b7b0c47..e5413f6 100644 --- a/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp +++ b/llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp @@ -89,10 +89,6 @@ bool RISCVPostRAExpandPseudo::expandMovImm(MachineBasicBlock &MBB, int64_t Val = MBBI->getOperand(1).getImm(); - RISCVMatInt::InstSeq Seq = - RISCVMatInt::generateInstSeq(Val, MBB.getParent()->getSubtarget()); - assert(!Seq.empty()); - Register DstReg = MBBI->getOperand(0).getReg(); bool DstIsDead = MBBI->getOperand(0).isDead(); bool Renamable = MBBI->getOperand(0).isRenamable(); -- cgit v1.1