Skip to content

Commit 4130523

Browse files
committed
[riscv] Minor style cleanup so that code more obviously matches comments [nfc]
1 parent 0dbaef6 commit 4130523

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1156,8 +1156,7 @@ void RISCVInsertVSETVLI::emitVSETVLIs(MachineBasicBlock &MBB) {
11561156
NewInfo.getAVLReg() == PrevVSETVLIMI->getOperand(0).getReg());
11571157
// If these two VSETVLI have the same AVL and the same VLMAX,
11581158
// we could merge these two VSETVLI.
1159-
if (HasSameAVL &&
1160-
CurInfo.getSEWLMULRatio() == NewInfo.getSEWLMULRatio()) {
1159+
if (HasSameAVL && CurInfo.hasSameVLMAX(NewInfo)) {
11611160
PrevVSETVLIMI->getOperand(2).setImm(NewInfo.encodeVTYPE());
11621161
NeedInsertVSETVLI = false;
11631162
}

0 commit comments

Comments
 (0)