summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LivePhysRegs.cpp
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2017-05-26 01:29:32 +0000
committerMatthias Braun <matze@braunis.de>2017-05-26 01:29:32 +0000
commitf56a6d84b6b7c3432db6c2ed7280d3dbe3cb4f3d (patch)
treec32e2e0d401b5aebae863d6e79a758d531d4f280 /llvm/lib/CodeGen/LivePhysRegs.cpp
parent9e6826de773f7dbd16f068d884342acbbeade3cd (diff)
downloadbcm5719-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/LivePhysRegs.cpp')
-rw-r--r--llvm/lib/CodeGen/LivePhysRegs.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp
index 774fa4c8c3e..d90e8930598 100644
--- a/llvm/lib/CodeGen/LivePhysRegs.cpp
+++ b/llvm/lib/CodeGen/LivePhysRegs.cpp
@@ -214,10 +214,8 @@ void LivePhysRegs::addLiveIns(const MachineBasicBlock &MBB) {
addBlockLiveIns(MBB);
}
-void llvm::computeLiveIns(LivePhysRegs &LiveRegs,
- const MachineRegisterInfo &MRI,
+void llvm::computeLiveIns(LivePhysRegs &LiveRegs, const TargetRegisterInfo &TRI,
MachineBasicBlock &MBB) {
- const TargetRegisterInfo &TRI = *MRI.getTargetRegisterInfo();
assert(MBB.livein_empty());
LiveRegs.init(TRI);
LiveRegs.addLiveOutsNoPristines(MBB);
@@ -225,12 +223,10 @@ void llvm::computeLiveIns(LivePhysRegs &LiveRegs,
LiveRegs.stepBackward(MI);
for (unsigned Reg : LiveRegs) {
- if (MRI.isReserved(Reg))
- continue;
// Skip the register if we are about to add one of its super registers.
bool ContainsSuperReg = false;
for (MCSuperRegIterator SReg(Reg, &TRI); SReg.isValid(); ++SReg) {
- if (LiveRegs.contains(*SReg) && !MRI.isReserved(*SReg)) {
+ if (LiveRegs.contains(*SReg)) {
ContainsSuperReg = true;
break;
}
OpenPOWER on IntegriCloud