MachineVerifier: Continue reporting errors for copies
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 31 Mar 2021 20:45:19 +0000 (16:45 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 20 Apr 2021 14:54:40 +0000 (10:54 -0400)
This was skipping verification of later copies, but generally the
verifier tries to report as many things wrong as possible in the
function.

llvm/lib/CodeGen/MachineVerifier.cpp

index 15fbda4..0a92056 100644 (file)
@@ -1676,8 +1676,6 @@ void MachineVerifier::visitMachineInstrBefore(const MachineInstr *MI) {
   // Verify properties of various specific instruction types
   switch (MI->getOpcode()) {
   case TargetOpcode::COPY: {
-    if (foundErrors)
-      break;
     const MachineOperand &DstOp = MI->getOperand(0);
     const MachineOperand &SrcOp = MI->getOperand(1);
     LLT DstTy = MRI->getType(DstOp.getReg());