summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorSam Parker <sam.parker@arm.com>2020-01-09 09:21:05 +0000
committerSam Parker <sam.parker@arm.com>2020-01-09 09:22:06 +0000
commit1cba2612399eaf5ad67f173ab69db0b1b0328fcb (patch)
tree1ba8c0530e6c69992f584be8c257ee765dc84470 /llvm/lib/CodeGen
parent0541a9d4e7f85c1f08f27fe0c0cae293bbb3903a (diff)
downloadbcm5719-llvm-1cba2612399eaf5ad67f173ab69db0b1b0328fcb.tar.gz
bcm5719-llvm-1cba2612399eaf5ad67f173ab69db0b1b0328fcb.zip
Revert "[ARM][LowOverheadLoops] Update liveness info"
This reverts commit e93e0d413f3afa1df5c5f88df546bebcd1183155. There's some ordering problems on some on the buildbots which needs investigating.
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LivePhysRegs.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp
index 547970e7ab5..7a5cffca347 100644
--- a/llvm/lib/CodeGen/LivePhysRegs.cpp
+++ b/llvm/lib/CodeGen/LivePhysRegs.cpp
@@ -276,7 +276,6 @@ void llvm::recomputeLivenessFlags(MachineBasicBlock &MBB) {
const MachineFunction &MF = *MBB.getParent();
const MachineRegisterInfo &MRI = MF.getRegInfo();
const TargetRegisterInfo &TRI = *MRI.getTargetRegisterInfo();
- const MachineFrameInfo &MFI = MF.getFrameInfo();
// We walk through the block backwards and start with the live outs.
LivePhysRegs LiveRegs;
@@ -295,18 +294,6 @@ void llvm::recomputeLivenessFlags(MachineBasicBlock &MBB) {
assert(Register::isPhysicalRegister(Reg));
bool IsNotLive = LiveRegs.available(MRI, Reg);
-
- // Special-case return instructions for cases when a return is not
- // the last instruction in the block.
- if (MI.isReturn() && MFI.isCalleeSavedInfoValid()) {
- for (const CalleeSavedInfo &Info : MFI.getCalleeSavedInfo()) {
- if (Info.getReg() == Reg) {
- IsNotLive = !Info.isRestored();
- break;
- }
- }
- }
-
MO->setIsDead(IsNotLive);
}
OpenPOWER on IntegriCloud