From bb6cb6bfe413e1f3e368f1bf0550a7517d7c8d66 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 9 Jun 2020 09:20:57 -0400 Subject: [PATCH] GlobalISel: Remove redundant check in verifier This was already checked earlier for all instructions. --- llvm/lib/CodeGen/MachineVerifier.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index df23ccf..c477626 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -915,9 +915,6 @@ void MachineVerifier::verifyPreISelGenericInstruction(const MachineInstr *MI) { switch (MI->getOpcode()) { case TargetOpcode::G_CONSTANT: case TargetOpcode::G_FCONSTANT: { - if (MI->getNumOperands() < MCID.getNumOperands()) - break; - LLT DstTy = MRI->getType(MI->getOperand(0).getReg()); if (DstTy.isVector()) report("Instruction cannot use a vector result type", MI); -- 2.7.4