summaryrefslogtreecommitdiffstats
path: root/llvm/lib
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
commitdb84d8f4fdff39d488d4b9b4c5246dc23cb1de57 (patch)
tree7245b0c50bf514a693f6afda4b1f98c12d31ebc9 /llvm/lib
parent6d808331ae26713a0e9f77fa32f73faa03de487a (diff)
downloadbcm5719-llvm-db84d8f4fdff39d488d4b9b4c5246dc23cb1de57.tar.gz
bcm5719-llvm-db84d8f4fdff39d488d4b9b4c5246dc23cb1de57.zip
Disable more of physical register live intervals verification.
llvm-svn: 117762
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/CodeGen/MachineVerifier.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineVerifier.cpp b/llvm/lib/CodeGen/MachineVerifier.cpp
index 48597c25b3e..6106b0123a1 100644
--- a/llvm/lib/CodeGen/MachineVerifier.cpp
+++ b/llvm/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);
}
}
OpenPOWER on IntegriCloud