diff options
author | Matthias Braun <matze@braunis.de> | 2016-08-25 01:27:13 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2016-08-25 01:27:13 +0000 |
commit | 1eb473680a3dac9d75f44c2f4799b4cef8465e5f (patch) | |
tree | 8b55104e7c95bc0f63da2e056dd6d4e3b184441b /llvm/lib/CodeGen/MachineVerifier.cpp | |
parent | f67357c671cc9e63e8a51c304af829801a0cbcd6 (diff) | |
download | bcm5719-llvm-1eb473680a3dac9d75f44c2f4799b4cef8465e5f.tar.gz bcm5719-llvm-1eb473680a3dac9d75f44c2f4799b4cef8465e5f.zip |
MachineFunctionProperties/MIRParser: Rename AllVRegsAllocated->NoVRegs, compute it
Rename AllVRegsAllocated to NoVRegs. This avoids the connotation of
running after register and simply describes that no vregs are used in
a machine function. With that we can simply compute the property and do
not need to dump/parse it in .mir files.
Differential Revision: http://reviews.llvm.org/D23850
llvm-svn: 279698
Diffstat (limited to 'llvm/lib/CodeGen/MachineVerifier.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index d75b90f96a5..f0ab4c3816c 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -314,15 +314,12 @@ void MachineVerifier::verifySlotIndexes() const { void MachineVerifier::verifyProperties(const MachineFunction &MF) { // If a pass has introduced virtual registers without clearing the - // AllVRegsAllocated property (or set it without allocating the vregs) + // NoVRegs property (or set it without allocating the vregs) // then report an error. if (MF.getProperties().hasProperty( - MachineFunctionProperties::Property::AllVRegsAllocated) && - MRI->getNumVirtRegs()) { - report( - "Function has AllVRegsAllocated property but there are VReg operands", - &MF); - } + MachineFunctionProperties::Property::NoVRegs) && + MRI->getNumVirtRegs()) + report("Function has NoVRegs property but there are VReg operands", &MF); } unsigned MachineVerifier::verify(MachineFunction &MF) { |