From 413052310add7737c130767799b524c9bb57439f Mon Sep 17 00:00:00 2001 From: Philip Reames Date: Tue, 10 May 2022 14:11:36 -0700 Subject: [PATCH] [riscv] Minor style cleanup so that code more obviously matches comments [nfc] --- llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp index a02162e..0cb60eb 100644 --- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp +++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp @@ -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; } -- 2.7.4