Skip to content

Commit

Permalink
[RISCV] Remove unneeded code from RISCVPostRAExpandPseudo::expandMovI…
Browse files Browse the repository at this point in the history
…mm. NFC

We accidentally left a call to generateInstSeq when we rewrote the
code to use the X86InstrInfo::movImm.
  • Loading branch information
topperc committed Jun 28, 2024
1 parent eec9d0b commit 2dff96d
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions llvm/lib/Target/RISCV/RISCVPostRAExpandPseudoInsts.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 2dff96d

Please sign in to comment.