diff options
Diffstat (limited to 'llvm/lib/CodeGen/MachineOutliner.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineOutliner.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineOutliner.cpp b/llvm/lib/CodeGen/MachineOutliner.cpp index ba125d9..e486123 100644 --- a/llvm/lib/CodeGen/MachineOutliner.cpp +++ b/llvm/lib/CodeGen/MachineOutliner.cpp @@ -962,10 +962,10 @@ MachineFunction *MachineOutliner::createOutlinedFunction( computeAndPublishHashSequence(MF, OF.Candidates.size()); // Set normal properties for a late MachineFunction. - MF.getProperties().reset(MachineFunctionProperties::Property::IsSSA); - MF.getProperties().set(MachineFunctionProperties::Property::NoPHIs); - MF.getProperties().set(MachineFunctionProperties::Property::NoVRegs); - MF.getProperties().set(MachineFunctionProperties::Property::TracksLiveness); + MF.getProperties().resetIsSSA(); + MF.getProperties().setNoPHIs(); + MF.getProperties().setNoVRegs(); + MF.getProperties().setTracksLiveness(); MF.getRegInfo().freezeReservedRegs(); // Compute live-in set for outlined fn @@ -1111,8 +1111,7 @@ bool MachineOutliner::outline( // anything we outline doesn't break liveness assumptions. The outlined // functions themselves currently don't track liveness, but we should // make sure that the ranges we yank things out of aren't wrong. - if (MBB.getParent()->getProperties().hasProperty( - MachineFunctionProperties::Property::TracksLiveness)) { + if (MBB.getParent()->getProperties().hasTracksLiveness()) { // The following code is to add implicit def operands to the call // instruction. It also updates call site information for moved // code. |