Skip to content

Commit

Permalink
[RISCV][NFC] Refine the patch of D141061
Browse files Browse the repository at this point in the history
Just saw Craig's comment after I commit, he has suggest a good NFC
for that change.
  • Loading branch information
kito-cheng committed Jan 5, 2023
1 parent 05a2ae1 commit 7504e9a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Expand Up @@ -1316,8 +1316,7 @@ void RISCVInsertVSETVLI::doLocalPostpass(MachineBasicBlock &MBB) {
MI.getOperand(1).ChangeToImmediate(NextMI->getOperand(1).getImm());
else
MI.getOperand(1).ChangeToRegister(NextMI->getOperand(1).getReg(), false);
if (MI.getOpcode() != NextMI->getOpcode())
MI.setDesc(TII->get(NextMI->getOpcode()));
MI.setDesc(NextMI->getDesc());
}
MI.getOperand(2).setImm(NextMI->getOperand(2).getImm());
ToDelete.push_back(NextMI);
Expand Down

0 comments on commit 7504e9a

Please sign in to comment.