aboutsummaryrefslogtreecommitdiff
path: root/backend/lib/CodeGen/InstructionDescriptor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/lib/CodeGen/InstructionDescriptor.cpp')
-rw-r--r--backend/lib/CodeGen/InstructionDescriptor.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/backend/lib/CodeGen/InstructionDescriptor.cpp b/backend/lib/CodeGen/InstructionDescriptor.cpp
index 9f4a178..3d97440 100644
--- a/backend/lib/CodeGen/InstructionDescriptor.cpp
+++ b/backend/lib/CodeGen/InstructionDescriptor.cpp
@@ -493,14 +493,6 @@ Expected<void> InstructionSet::validateOperand(const OperandDescriptor &Descript
auto Info = RegInfo.virtualRegisterInfo(*Reg);
if (!Info)
return std::unexpected(Info.error());
- if (Descriptor.RegBank && Info->get().Bank != Descriptor.RegBank) {
- return makeUnexpected(ErrorCode::VerificationError,
- "virtual register bank does not match operand descriptor");
- }
- if (Descriptor.RegClass && Info->get().RegClass != Descriptor.RegClass) {
- return makeUnexpected(ErrorCode::VerificationError,
- "virtual register class does not match operand descriptor");
- }
}
}