[llvm] 941f20c - [MachineVerifier] Simplify and delete LLVM_VERIFY_MACHINEINSTRS from a comment. NFC
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 27 00:31:52 PST 2020
Author: Fangrui Song
Date: 2020-01-27T00:31:23-08:00
New Revision: 941f20c3bd22f2b55815c6d5aa7914d9385fb3b3
URL: https://github.com/llvm/llvm-project/commit/941f20c3bd22f2b55815c6d5aa7914d9385fb3b3
DIFF: https://github.com/llvm/llvm-project/commit/941f20c3bd22f2b55815c6d5aa7914d9385fb3b3.diff
LOG: [MachineVerifier] Simplify and delete LLVM_VERIFY_MACHINEINSTRS from a comment. NFC
The environment variable has been unused since r228079.
Added:
Modified:
llvm/lib/CodeGen/MachineVerifier.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 5513228f514f..bf589a7019e5 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/lib/CodeGen/MachineVerifier.cpp
@@ -16,10 +16,8 @@
// Register live intervals: Registers must be defined only once, and must be
// defined before use.
//
-// The machine code verifier is enabled from LLVMTargetMachine.cpp with the
-// command-line option -verify-machineinstrs, or by defining the environment
-// variable LLVM_VERIFY_MACHINEINSTRS to the name of a file that will receive
-// the verifier errors.
+// The machine code verifier is enabled with the command-line option
+// -verify-machineinstrs.
//===----------------------------------------------------------------------===//
#include "llvm/ADT/BitVector.h"
@@ -376,13 +374,11 @@ unsigned MachineVerifier::verify(MachineFunction &MF) {
if (isFunctionFailedISel)
return foundErrors;
- isFunctionRegBankSelected =
- !isFunctionFailedISel &&
- MF.getProperties().hasProperty(
- MachineFunctionProperties::Property::RegBankSelected);
- isFunctionSelected = !isFunctionFailedISel &&
- MF.getProperties().hasProperty(
- MachineFunctionProperties::Property::Selected);
+ isFunctionRegBankSelected = MF.getProperties().hasProperty(
+ MachineFunctionProperties::Property::RegBankSelected);
+ isFunctionSelected = MF.getProperties().hasProperty(
+ MachineFunctionProperties::Property::Selected);
+
LiveVars = nullptr;
LiveInts = nullptr;
LiveStks = nullptr;
More information about the llvm-commits
mailing list