aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineVerifier.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-12-15 17:30:32 -0800
committerGitHub <noreply@github.com>2024-12-15 17:30:32 -0800
commitca60ee2b8c57034175f590f0aff5978a066569a0 (patch)
tree01e174ae44ff6161b9e0a75b51da0c2685bce70b /llvm/lib/CodeGen/MachineVerifier.cpp
parentf86f4574bbab9cb8c998f9e6560c68696c45f90f (diff)
downloadllvm-ca60ee2b8c57034175f590f0aff5978a066569a0.zip
llvm-ca60ee2b8c57034175f590f0aff5978a066569a0.tar.gz
llvm-ca60ee2b8c57034175f590f0aff5978a066569a0.tar.bz2
[GISel] Remove unnecessary MachineVerifier checks for G_ABDS/G_ABDU. (#120014)
These are declared to use a single type index for all operands in GenericOpcodes.td and the verifier knows how to check that all operands with the same type index match.
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp25
1 files changed, 0 insertions, 25 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index fb4d96f..7077580 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -1586,31 +1586,6 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) {
break;
}
- case TargetOpcode::G_ABDS:
- case TargetOpcode::G_ABDU: {
- LLT DstTy = MRI->getType(MI->getOperand(0).getReg());
- LLT SrcTy = MRI->getType(MI->getOperand(1).getReg());
- LLT SrcTy2 = MRI->getType(MI->getOperand(2).getReg());
-
- if ((DstTy.isVector() != SrcTy.isVector()) ||
- (DstTy.isVector() &&
- DstTy.getElementCount() != SrcTy.getElementCount())) {
- report("Generic vector abds/abdu must preserve number of lanes", MI);
- break;
- }
-
- if (SrcTy != SrcTy2) {
- report("Generic abds/abdu must have same input types", MI);
- break;
- }
-
- if (DstTy != SrcTy) {
- report("Generic abds/abdu must have same input and output types", MI);
- break;
- }
-
- break;
- }
case TargetOpcode::G_SCMP:
case TargetOpcode::G_UCMP: {
LLT DstTy = MRI->getType(MI->getOperand(0).getReg());