[riscv] Minor style cleanup so that code more obviously matches comments [nfc]

This commit is contained in:
Philip Reames 2022-05-10 14:11:36 -07:00
parent 0dbaef61b5
commit 413052310a
1 changed files with 1 additions and 2 deletions

View File

@ -1156,8 +1156,7 @@ void RISCVInsertVSETVLI::emitVSETVLIs(MachineBasicBlock &MBB) {
NewInfo.getAVLReg() == PrevVSETVLIMI->getOperand(0).getReg());
// If these two VSETVLI have the same AVL and the same VLMAX,
// we could merge these two VSETVLI.
if (HasSameAVL &&
CurInfo.getSEWLMULRatio() == NewInfo.getSEWLMULRatio()) {
if (HasSameAVL && CurInfo.hasSameVLMAX(NewInfo)) {
PrevVSETVLIMI->getOperand(2).setImm(NewInfo.encodeVTYPE());
NeedInsertVSETVLI = false;
}