diff options
author | Matthias Braun <matze@braunis.de> | 2017-06-03 00:26:35 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2017-06-03 00:26:35 +0000 |
commit | 4e8624d13825326a6e473d986197b5d9007b1153 (patch) | |
tree | 896e069d86580357552480bd126f0cff077b4066 /llvm/lib/CodeGen/LivePhysRegs.cpp | |
parent | 167595ab511dcb2b9b52723067669af8eb6e461b (diff) | |
download | bcm5719-llvm-4e8624d13825326a6e473d986197b5d9007b1153.tar.gz bcm5719-llvm-4e8624d13825326a6e473d986197b5d9007b1153.zip |
LiveRegUnits: Port recent LivePhysRegs bugfixes
Adjust code to look more like the code in LivePhysRegs and port over the
fix for LivePhysRegs from r304001 and adapt to the new CSR management in
MachineRegisterInfo.
llvm-svn: 304622
Diffstat (limited to 'llvm/lib/CodeGen/LivePhysRegs.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LivePhysRegs.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp index 0dc1079b2ad..cde6ccd29df 100644 --- a/llvm/lib/CodeGen/LivePhysRegs.cpp +++ b/llvm/lib/CodeGen/LivePhysRegs.cpp @@ -198,13 +198,12 @@ void LivePhysRegs::addLiveOutsNoPristines(const MachineBasicBlock &MBB) { } void LivePhysRegs::addLiveOuts(const MachineBasicBlock &MBB) { + const MachineFunction &MF = *MBB.getParent(); if (!MBB.succ_empty()) { - const MachineFunction &MF = *MBB.getParent(); addPristines(*this, MF); addLiveOutsNoPristines(MBB); } else if (MBB.isReturnBlock()) { // For the return block: Add all callee saved registers. - const MachineFunction &MF = *MBB.getParent(); const MachineFrameInfo &MFI = MF.getFrameInfo(); if (MFI.isCalleeSavedInfoValid()) addCalleeSavedRegs(*this, MF); |