[llvm] 040df69 - [RISCV] Use VSETVLIInfo != operator in needVSETVLIPHI. NFC
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 25 17:20:52 PDT 2024
Author: Luke Lau
Date: 2024-04-26T08:20:40+08:00
New Revision: 040df69b10fc173cfc8bee007d7c9bd22f21a06c
URL: https://github.com/llvm/llvm-project/commit/040df69b10fc173cfc8bee007d7c9bd22f21a06c
DIFF: https://github.com/llvm/llvm-project/commit/040df69b10fc173cfc8bee007d7c9bd22f21a06c.diff
LOG: [RISCV] Use VSETVLIInfo != operator in needVSETVLIPHI. NFC
Instead of manually checking hasSameVTYPE and hasSameAVL.
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 3c528a098d7afe..be01df0f1ea9eb 100644
--- a/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
+++ b/llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp
@@ -1351,8 +1351,7 @@ bool RISCVInsertVSETVLI::needVSETVLIPHI(const VSETVLIInfo &Require,
// We found a VSET(I)VLI make sure it matches the output of the
// predecessor block.
VSETVLIInfo DefInfo = getInfoForVSETVLI(*DefMI);
- if (!DefInfo.hasSameAVL(PBBInfo.Exit) ||
- !DefInfo.hasSameVTYPE(PBBInfo.Exit))
+ if (DefInfo != PBBInfo.Exit)
return true;
}
More information about the llvm-commits
mailing list