[llvm] bb6cb6b - GlobalISel: Remove redundant check in verifier
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 12:21:49 PDT 2020
Author: Matt Arsenault
Date: 2020-06-09T15:04:27-04:00
New Revision: bb6cb6bfe413e1f3e368f1bf0550a7517d7c8d66
URL: https://github.com/llvm/llvm-project/commit/bb6cb6bfe413e1f3e368f1bf0550a7517d7c8d66
DIFF: https://github.com/llvm/llvm-project/commit/bb6cb6bfe413e1f3e368f1bf0550a7517d7c8d66.diff
LOG: GlobalISel: Remove redundant check in verifier
This was already checked earlier for all instructions.
Added:
Modified:
llvm/lib/CodeGen/MachineVerifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index df23ccf4e195..c47762617245 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);
More information about the llvm-commits
mailing list