[llvm] 8fbe04f - MachineVerifier: Continue reporting errors for copies
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 20 07:54:46 PDT 2021
Author: Matt Arsenault
Date: 2021-04-20T10:54:40-04:00
New Revision: 8fbe04f46b4347331ee9c77c83e38830ee7e9cbc
URL: https://github.com/llvm/llvm-project/commit/8fbe04f46b4347331ee9c77c83e38830ee7e9cbc
DIFF: https://github.com/llvm/llvm-project/commit/8fbe04f46b4347331ee9c77c83e38830ee7e9cbc.diff
LOG: 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.
Added:
Modified:
llvm/lib/CodeGen/MachineVerifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 15fbda4c869f..0a92056df03e 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());
More information about the llvm-commits
mailing list