From: Matt Arsenault Date: Wed, 31 Mar 2021 20:45:19 +0000 (-0400) Subject: MachineVerifier: Continue reporting errors for copies X-Git-Tag: llvmorg-14-init~9074 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8fbe04f46b4347331ee9c77c83e38830ee7e9cbc;p=platform%2Fupstream%2Fllvm.git MachineVerifier: Continue reporting errors for copies This was skipping verification of later copies, but generally the verifier tries to report as many things wrong as possible in the function. --- diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 15fbda4..0a92056 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -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());