[riscv] Minor style cleanup so that code more obviously matches comments [nfc]
authorPhilip Reames <preames@rivosinc.com>
Tue, 10 May 2022 21:11:36 +0000 (14:11 -0700)
committerPhilip Reames <preames@rivosinc.com>
Tue, 10 May 2022 21:20:26 +0000 (14:20 -0700)
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

index a02162e..0cb60eb 100644 (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;
             }