aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-30 01:26:11 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2010-10-30 01:26:11 +0000
commitab56647e6b2a7b376f0c245a0bc92cd632107edb (patch)
tree333c73e22024f12fe5aa0b2278a526054292ddad /lib/CodeGen
parent7d57753df3bbad14e3e3ddf396b4edbdc4c55d7d (diff)
downloadexternal_llvm-ab56647e6b2a7b376f0c245a0bc92cd632107edb.tar.gz
external_llvm-ab56647e6b2a7b376f0c245a0bc92cd632107edb.tar.bz2
external_llvm-ab56647e6b2a7b376f0c245a0bc92cd632107edb.zip
Disable more of physical register live intervals verification.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117762 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/MachineVerifier.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/CodeGen/MachineVerifier.cpp b/lib/CodeGen/MachineVerifier.cpp
index 48597c25b3..6106b0123a 100644
--- a/lib/CodeGen/MachineVerifier.cpp
+++ b/lib/CodeGen/MachineVerifier.cpp
@@ -609,7 +609,8 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
}
// Check LiveInts liveness and kill.
- if (LiveInts && !LiveInts->isNotInMIMap(MI)) {
+ if (TargetRegisterInfo::isVirtualRegister(Reg) &&
+ LiveInts && !LiveInts->isNotInMIMap(MI)) {
SlotIndex UseIdx = LiveInts->getInstructionIndex(MI).getUseIndex();
if (LiveInts->hasInterval(Reg)) {
const LiveInterval &LI = LiveInts->getInterval(Reg);
@@ -618,7 +619,7 @@ MachineVerifier::visitMachineOperand(const MachineOperand *MO, unsigned MONum) {
*OS << UseIdx << " is not live in " << LI << '\n';
}
// TODO: Verify isKill == LI.killedAt.
- } else if (TargetRegisterInfo::isVirtualRegister(Reg)) {
+ } else {
report("Virtual register has no Live interval", MO, MONum);
}
}