aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/RegAllocFast.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocFast.cpp')
-rw-r--r--llvm/lib/CodeGen/RegAllocFast.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/llvm/lib/CodeGen/RegAllocFast.cpp b/llvm/lib/CodeGen/RegAllocFast.cpp
index bb118dd..66a206c 100644
--- a/llvm/lib/CodeGen/RegAllocFast.cpp
+++ b/llvm/lib/CodeGen/RegAllocFast.cpp
@@ -417,22 +417,19 @@ public:
}
MachineFunctionProperties getRequiredProperties() const override {
- return MachineFunctionProperties().set(
- MachineFunctionProperties::Property::NoPHIs);
+ return MachineFunctionProperties().setNoPHIs();
}
MachineFunctionProperties getSetProperties() const override {
if (Impl.ClearVirtRegs) {
- return MachineFunctionProperties().set(
- MachineFunctionProperties::Property::NoVRegs);
+ return MachineFunctionProperties().setNoVRegs();
}
return MachineFunctionProperties();
}
MachineFunctionProperties getClearedProperties() const override {
- return MachineFunctionProperties().set(
- MachineFunctionProperties::Property::IsSSA);
+ return MachineFunctionProperties().setIsSSA();
}
};
@@ -1196,10 +1193,9 @@ MCPhysReg RegAllocFastImpl::getErrorAssignment(const LiveReg &LR,
MachineFunction &MF = *MI.getMF();
// Avoid repeating the error every time a register is used.
- bool EmitError = !MF.getProperties().hasProperty(
- MachineFunctionProperties::Property::FailedRegAlloc);
+ bool EmitError = !MF.getProperties().hasFailedRegAlloc();
if (EmitError)
- MF.getProperties().set(MachineFunctionProperties::Property::FailedRegAlloc);
+ MF.getProperties().setFailedRegAlloc();
// If the allocation order was empty, all registers in the class were
// probably reserved. Fall back to taking the first register in the class,