MIR: remove explicit "noVRegs" property.

We can infer this from the incoming MIR, so there's no reason to
represent it with a special flag.

llvm-svn: 304246
This commit is contained in:
Tim Northover 2017-05-30 21:28:57 +00:00
parent 74480adafd
commit fb26d9a286
10 changed files with 0 additions and 14 deletions

View File

@ -381,7 +381,6 @@ struct MachineFunction {
StringRef Name;
unsigned Alignment = 0;
bool ExposesReturnsTwice = false;
bool NoVRegs;
// GISel MachineFunctionProperties.
bool Legalized = false;
bool RegBankSelected = false;
@ -406,7 +405,6 @@ template <> struct MappingTraits<MachineFunction> {
YamlIO.mapRequired("name", MF.Name);
YamlIO.mapOptional("alignment", MF.Alignment);
YamlIO.mapOptional("exposesReturnsTwice", MF.ExposesReturnsTwice);
YamlIO.mapOptional("noVRegs", MF.NoVRegs);
YamlIO.mapOptional("legalized", MF.Legalized);
YamlIO.mapOptional("regBankSelected", MF.RegBankSelected);
YamlIO.mapOptional("selected", MF.Selected);

View File

@ -332,8 +332,6 @@ bool MIRParserImpl::initializeMachineFunction(MachineFunction &MF) {
MF.setAlignment(YamlMF.Alignment);
MF.setExposesReturnsTwice(YamlMF.ExposesReturnsTwice);
if (YamlMF.NoVRegs)
MF.getProperties().set(MachineFunctionProperties::Property::NoVRegs);
if (YamlMF.Legalized)
MF.getProperties().set(MachineFunctionProperties::Property::Legalized);
if (YamlMF.RegBankSelected)

View File

@ -183,8 +183,6 @@ void MIRPrinter::print(const MachineFunction &MF) {
YamlMF.Alignment = MF.getAlignment();
YamlMF.ExposesReturnsTwice = MF.exposesReturnsTwice();
YamlMF.NoVRegs = MF.getProperties().hasProperty(
MachineFunctionProperties::Property::NoVRegs);
YamlMF.Legalized = MF.getProperties().hasProperty(
MachineFunctionProperties::Property::Legalized);
YamlMF.RegBankSelected = MF.getProperties().hasProperty(

View File

@ -13,7 +13,6 @@
name: main
alignment: 2
exposesReturnsTwice: false
noVRegs: false
legalized: true
regBankSelected: true
selected: false

View File

@ -50,7 +50,6 @@
name: test
alignment: 0
exposesReturnsTwice: false
noVRegs: false
legalized: false
regBankSelected: false
selected: false

View File

@ -190,7 +190,6 @@
name: foo
alignment: 1
exposesReturnsTwice: false
noVRegs: true
legalized: false
regBankSelected: false
selected: false
@ -289,7 +288,6 @@ body: |
name: bar
alignment: 1
exposesReturnsTwice: false
noVRegs: true
legalized: false
regBankSelected: false
selected: false

View File

@ -39,7 +39,6 @@
name: l5
alignment: 2
exposesReturnsTwice: false
noVRegs: true
legalized: false
regBankSelected: false
selected: false

View File

@ -39,7 +39,6 @@
name: Func
alignment: 1
exposesReturnsTwice: false
noVRegs: true
legalized: false
regBankSelected: false
selected: false

View File

@ -5,7 +5,6 @@ define void @test_void_return() {
; CHECK-LABEL: name: test_void_return
; CHECK: alignment: 4
; CHECK-NEXT: exposesReturnsTwice: false
; CHECK-NEXT: noVRegs: false
; CHECK-NEXT: legalized: false
; CHECK-NEXT: regBankSelected: false
; CHECK-NEXT: selected: false

View File

@ -73,7 +73,6 @@
name: _ZN1C5m_fn3Ev
alignment: 4
exposesReturnsTwice: false
noVRegs: true
legalized: false
regBankSelected: false
selected: false