diff options
| author | Galina Kistanova <gkistanova@gmail.com> | 2019-11-07 14:02:13 -0800 |
|---|---|---|
| committer | Galina Kistanova <gkistanova@gmail.com> | 2019-11-07 14:02:13 -0800 |
| commit | ad3c9d46fe39af1762a7be75d754723be9a5594a (patch) | |
| tree | 754e60b1b23ca5ea8853c2331e512542b42947b4 /llvm/lib | |
| parent | d91ed80e97ac9bfcfb02440874ed8b9a51c9491e (diff) | |
| download | bcm5719-llvm-ad3c9d46fe39af1762a7be75d754723be9a5594a.tar.gz bcm5719-llvm-ad3c9d46fe39af1762a7be75d754723be9a5594a.zip | |
Revert "[MachineVerifier] Improve verification of live-in lists.
This reverts commit b7b170c to give the author more time to address failing tests on the expensive checks buildbots.
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/MachineVerifier.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp index 6361a49d962..6845187f10d 100644 --- a/llvm/lib/CodeGen/MachineVerifier.cpp +++ b/llvm/lib/CodeGen/MachineVerifier.cpp @@ -2304,32 +2304,6 @@ void MachineVerifier::visitMachineFunctionAfter() { if (LiveInts) verifyLiveIntervals(); - // Check live-in list of each MBB. If a register is live into MBB, check - // that the register is in regsLiveOut of each predecessor block. Since - // this must come from a definition in the predecesssor or its live-in - // list, this will catch a live-through case where the predecessor does not - // have the register in its live-in list. This currently only checks - // registers that have no aliases, are not allocatable and are not - // reserved, which could mean a condition code register for instance. - if (MRI->tracksLiveness()) - for (const auto &MBB : *MF) - for (MachineBasicBlock::RegisterMaskPair P : MBB.liveins()) { - MCPhysReg LiveInReg = P.PhysReg; - bool hasAliases = MCRegAliasIterator(LiveInReg, TRI, false).isValid(); - if (hasAliases || isAllocatable(LiveInReg) || isReserved(LiveInReg)) - continue; - for (const MachineBasicBlock *Pred : MBB.predecessors()) { - BBInfo &PInfo = MBBInfoMap[Pred]; - if (!PInfo.regsLiveOut.count(LiveInReg)) { - report("Live in register not found to be live out from predecessor.", - &MBB); - errs() << TRI->getName(LiveInReg) - << " not found to be live out from " - << printMBBReference(*Pred) << "\n"; - } - } - } - for (auto CSInfo : MF->getCallSitesInfo()) if (!CSInfo.first->isCall()) report("Call site info referencing instruction that is not call", MF); |

