diff options
| author | Eli Friedman <efriedma@codeaurora.org> | 2018-01-31 00:40:42 +0000 |
|---|---|---|
| committer | Eli Friedman <efriedma@codeaurora.org> | 2018-01-31 00:40:42 +0000 |
| commit | 804d7ab811766a11559d81116f16635e06f91f43 (patch) | |
| tree | 9e3a56898de4c542b24c9d0df02ef20db79b12ca /llvm/lib/CodeGen | |
| parent | f98baa7065084fd9326e46d52acaedabdbb82f80 (diff) | |
| download | bcm5719-llvm-804d7ab811766a11559d81116f16635e06f91f43.tar.gz bcm5719-llvm-804d7ab811766a11559d81116f16635e06f91f43.zip | |
Revert r323559 due to EXPENSIVE_CHECKS regression.
I have a fix for the issue (https://reviews.llvm.org/D42655) but
it's taking a while to get reviewed, so reverting in the meantime.
llvm-svn: 323841
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/LivePhysRegs.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp index c07fa16e129..f4b43a9b8ea 100644 --- a/llvm/lib/CodeGen/LivePhysRegs.cpp +++ b/llvm/lib/CodeGen/LivePhysRegs.cpp @@ -225,10 +225,10 @@ void LivePhysRegs::addLiveOutsNoPristines(const MachineBasicBlock &MBB) { void LivePhysRegs::addLiveOuts(const MachineBasicBlock &MBB) { const MachineFunction &MF = *MBB.getParent(); - if (!MBB.isReturnBlock()) { + if (!MBB.succ_empty()) { addPristines(MF); addLiveOutsNoPristines(MBB); - } else { + } else if (MBB.isReturnBlock()) { // For the return block: Add all callee saved registers. const MachineFrameInfo &MFI = MF.getFrameInfo(); if (MFI.isCalleeSavedInfoValid()) |

