diff options
author | Matthias Braun <matze@braunis.de> | 2017-05-26 01:29:32 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-05-26 01:29:32 +0000 |
commit | f56a6d84b6b7c3432db6c2ed7280d3dbe3cb4f3d (patch) | |
tree | c32e2e0d401b5aebae863d6e79a758d531d4f280 /llvm/lib/CodeGen/BranchFolding.cpp | |
parent | 9e6826de773f7dbd16f068d884342acbbeade3cd (diff) | |
download | bcm5719-llvm-f56a6d84b6b7c3432db6c2ed7280d3dbe3cb4f3d.tar.gz bcm5719-llvm-f56a6d84b6b7c3432db6c2ed7280d3dbe3cb4f3d.zip |
Revert "LivePhysRegs: Skip reserved regs in computeLiveIns; NFCI"
Tentatively revert, suspecting that it caused breakage in stage2
buildbots.
This reverts commit r303949.
This reverts commit r303937.
llvm-svn: 303955
Diffstat (limited to 'llvm/lib/CodeGen/BranchFolding.cpp')
-rw-r--r-- | llvm/lib/CodeGen/BranchFolding.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/BranchFolding.cpp b/llvm/lib/CodeGen/BranchFolding.cpp index 03ceac10bee..025b9fc6cd0 100644 --- a/llvm/lib/CodeGen/BranchFolding.cpp +++ b/llvm/lib/CodeGen/BranchFolding.cpp @@ -153,14 +153,13 @@ bool BranchFolder::OptimizeFunction(MachineFunction &MF, TriedMerging.clear(); - MachineRegisterInfo &MRI = MF.getRegInfo(); AfterBlockPlacement = AfterPlacement; TII = tii; TRI = tri; MMI = mmi; MLI = mli; - this->MRI = &MRI; + MachineRegisterInfo &MRI = MF.getRegInfo(); UpdateLiveIns = MRI.tracksLiveness() && TRI->trackLivenessAfterRegAlloc(MF); if (!UpdateLiveIns) MRI.invalidateLiveness(); @@ -352,7 +351,7 @@ void BranchFolder::ReplaceTailWithBranchTo(MachineBasicBlock::iterator OldInst, if (UpdateLiveIns) { NewDest->clearLiveIns(); - computeLiveIns(LiveRegs, *MRI, *NewDest); + computeLiveIns(LiveRegs, *TRI, *NewDest); } ++NumTailMerge; @@ -389,7 +388,7 @@ MachineBasicBlock *BranchFolder::SplitMBBAt(MachineBasicBlock &CurMBB, MBBFreqInfo.setBlockFreq(NewMBB, MBBFreqInfo.getBlockFreq(&CurMBB)); if (UpdateLiveIns) - computeLiveIns(LiveRegs, *MRI, *NewMBB); + computeLiveIns(LiveRegs, *TRI, *NewMBB); // Add the new block to the funclet. const auto &FuncletI = FuncletMembership.find(&CurMBB); |