[llvm] 4130523 - [riscv] Minor style cleanup so that code more obviously matches comments [nfc]
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Tue May 10 14:20:43 PDT 2022
Author: Philip Reames
Date: 2022-05-10T14:20:26-07:00
New Revision: 413052310add7737c130767799b524c9bb57439f
URL: https://github.com/llvm/llvm-project/commit/413052310add7737c130767799b524c9bb57439f
DIFF: https://github.com/llvm/llvm-project/commit/413052310add7737c130767799b524c9bb57439f.diff
LOG: [riscv] Minor style cleanup so that code more obviously matches comments [nfc]
Added:
Modified:
llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
index a02162eba7acd..0cb60eb3b212d 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;
}
More information about the llvm-commits
mailing list